<%= render "layouts/portlet-config" %> <%= render "layouts/theme-panel" %> <% if flash[:error] %>
× <%= flash[:error] %>
<% end %> <%= render "layouts/breadcrumbs" %> <%= form_tag({:action=>'create'} ,:multipart=>true,:id=>'myForms' ) do %> <% if @stkHead!=nil && @stkHead.ish_status=='C' %>
This bill has been cancelled.
<% end %>
Bill No[*]
Bill Date[*]
Name
Mob No.
Salesman[*]
Remarks
Permo.Code

Barcode

<% i = 1 ttaxable = 0 tqty = 0 tvalue = 0 taxamt = 0 tnetamt = 0 tdiscont = 0 if @footerItem!=nil && @footerItem.length >0 @footerItem.each do |foot| compcodes = foot.ishd_compcode pdcode = foot.ishd_productcode pdobj = get_name_of_product(compcodes,pdcode) pdname = '' if pdobj pdname = pdobj.pd_productname end ttaxable = ttaxable.to_f+foot.ishd_taxablevalue.to_f tqty = tqty.to_f+foot.ishd_qty.to_f tvalue = tvalue.to_f+foot.ishd_value.to_f taxamt = taxamt.to_f+foot.ishd_taxamount.to_f tnetamt = tnetamt.to_f+foot.ishd_netamount.to_f tdiscont = tdiscont.to_f+foot.ishd_discamount.to_f %> <% i +=1 end %> <% end %> <% isblock = 'hidden' issavld = '' issavebtn = 'save.png' if @footerItem!=nil && @footerItem.length >0 isblock ='' issavebtn = 'update.png' end if @stkHead!=nil && @stkHead.ish_status=='C' issavld = 'hidden' end %>
SL.No. Prod. Code Prod. Desc Size Color Qty Rate Value Disc % Disc.Amt Tax% Tax Amt Net Amt
<%=i%> <%=pdcode%> <%=pdname%> <%=foot.ishd_size%> <%=foot.ishd_color%> <%=currency_formatted(foot.ishd_qty)%> <%=currency_formatted(foot.ishd_rate)%> <%=currency_formatted(foot.ishd_value)%> <%=currency_formatted(foot.ishd_discount)%> <%=currency_formatted(foot.ishd_discamount)%> <%=currency_formatted(foot.ishd_tax)%> <%=currency_formatted(foot.ishd_taxamount)%> <%=currency_formatted(foot.ishd_netamount)%>
Qty Net Amt
Card
Value Card
Value Card Amt
Promo Coupon
Total Qty    <%=currency_formatted(tqty)%>
Total Value    <%=currency_formatted(tvalue)%>
Disc Amt    <%=currency_formatted(tdiscont)%>
Taxable Amount    <%=currency_formatted(ttaxable)%>
Net Amount    <%=currency_formatted(tnetamt)%>
Bal. Cash
<% if @stkHead==nil %> <% end %> <% if @stkHead!=nil && @stkHead.ish_status!='C' %> <% end %>
<% end %>
<%=render 'layouts/common/sale_invoice_window'%>