<%= 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.exh_status=='C' %>
This exchange entry has been cancelled.
<% end %>
Exc. No[*]
Exc Date[*]
Name
Mob No.
Salesman
Remarks

Bill No
Barcode

<% m = 1 xttaxable = 0 xtqty = 0 xtvalue = 0 xtaxamt = 0 xtnetamt = 0 xtdiscont = 0 if @credFooter!=nil && @credFooter.length >0 @credFooter.each do |foot| compcodes = foot.exhd_compcode pdcode = foot.exhd_prodcode pdobj = get_name_of_product(compcodes,pdcode) pdname = '' if pdobj pdname = pdobj.pd_productname end xttaxable = xttaxable.to_f+foot.exhd_taxableamt.to_f xtqty = xtqty.to_f+foot.exhd_qty.to_f xtvalue = xtvalue.to_f+foot.exhd_value.to_f xtaxamt = xtaxamt.to_f+foot.exhd_taxamt.to_f xtnetamt = xtnetamt.to_f+foot.exhd_netamt.to_f xtdiscont = xtdiscont.to_f+foot.exhd_discamt.to_f %> <% m +=1 end %> <% else %> <% end %>
SL.No. Prod. Code Prod. Desc Size Color Qty Rate Value Disc % Disc.Amt Tax% Tax Amt Net Amt
<%=m%> <%=pdcode%> <%=pdname%> <%=foot.exhd_size%> <%=foot.exhd_color%> <%=currency_formatted(foot.exhd_qty)%> <%=currency_formatted(foot.exhd_rate)%> <%=currency_formatted(foot.exhd_value)%> <%=currency_formatted(foot.exhd_discount)%> <%=currency_formatted(foot.exhd_discamt)%> <%=currency_formatted(foot.exhd_tax)%> <%=currency_formatted(foot.exhd_taxamt)%> <%=currency_formatted(foot.exhd_netamt)%>
No item selected.
<% displaynewprod = "hidden" if @stkHead!=nil && @stkHead.exh_type =='E' displaynewprod = '' end %>
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.exhd_compcode pdcode = foot.exhd_prodcode pdobj = get_name_of_product(compcodes,pdcode) pdname = '' if pdobj pdname = pdobj.pd_productname end ttaxable = ttaxable.to_f+foot.exhd_taxableamt.to_f tqty = tqty.to_f+foot.exhd_qty.to_f tvalue = tvalue.to_f+foot.exhd_value.to_f taxamt = taxamt.to_f+foot.exhd_taxamt.to_f tnetamt = tnetamt.to_f+foot.exhd_netamt.to_f tdiscont = tdiscont.to_f+foot.exhd_discamt.to_f %> <% i +=1 end %> <% else %> <% end %> <% isblock = 'hidden' issavld = '' issavebtn = 'save.png' if @footerItem!=nil && @footerItem.length >0 isblock ='' issavebtn = 'update.png' end if @stkHead!=nil && @stkHead.exh_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.exhd_size%> <%=foot.exhd_color%> <%=currency_formatted(foot.exhd_qty)%> <%=currency_formatted(foot.exhd_rate)%> <%=currency_formatted(foot.exhd_value)%> <%=currency_formatted(foot.exhd_discount)%> <%=currency_formatted(foot.exhd_discamt)%> <%=currency_formatted(foot.exhd_tax)%> <%=currency_formatted(foot.exhd_taxamt)%> <%=currency_formatted(foot.exhd_netamt)%>
No item selected.

On exchange radio button both table will show
On credit Note only 1st table will be shown

<% if @stkHead==nil %> <% end %> <% if @stkHead!=nil && @stkHead.exh_status!='C' %> <% end %>
<% if @stkHead!=nil && @stkHead.exh_type =='E' dxttaxable = xttaxable.to_f-ttaxable.to_f dxtqty = xtqty.to_f-tqty.to_f dxtvalue = xtvalue.to_f-tvalue.to_f dxtaxamt = xtaxamt.to_f-taxamt.to_f dxtnetamt = xtnetamt.to_f-tnetamt.to_f dxtdiscont = xtdiscont.to_f-tdiscont.to_f else dxttaxable = xttaxable.to_f dxtqty = xtqty.to_f dxtvalue = xtvalue.to_f dxtaxamt = xtaxamt.to_f dxtnetamt = xtnetamt.to_f dxtdiscont = xtdiscont.to_f end %>
For feed Value
Bal. Cash
Total Qty    <%=currency_formatted(dxtqty)%>
Total Value    <%=currency_formatted(dxtvalue)%>
Disc Amt    <%=currency_formatted(dxtdiscont)%>
Taxable Amount    <%=currency_formatted(dxttaxable)%>
Net Amount    <%=currency_formatted(dxtnetamt)%>
<% end %>
<%=render 'layouts/common/sale_invoice_window'%>