<%= 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 @HeadPack!=nil && @HeadPack.pli_status == 'C'%>
This invoice has been cancelled

<% end %>
Select Customer
From Date
Upto Date

Export No. [*]
<% newblupdate = '' if @HeadPack!=nil newblupdate = Base64.encode64(@HeadPack.pli_number.to_s+"_"+@HeadPack.pli_compcode.to_s+"_"+@HeadPack.pli_local_type.to_s) end %>
<% ndate = '' if @HeadPack!=nil ndat = Date.parse(@HeadPack.pli_date.to_s) ndate = ndat.strftime("%d-%b-%Y") end %>
Export Date [*]
Buyer [*]
Buyer(If Other)
Notify(If Other)
Packing List No
<% if @HeadPack!=nil%>
<% if @isPackLstNo!=nil spls = set_dct(@isPackLstNo.strip).to_s.split("_") %> <%=spls[0]%> <% end %>        Reload Packing List
<% else %>
<% end %>
Shipping Terms
Payment Terms
Credit Days
Due Date
Invoice No [*]
Transport
Place Of Receipt
 
<% newblupdate = '' if @HeadPack!=nil newblupdate = Base64.encode64(@HeadPack.pli_number.to_s+"_"+@HeadPack.pli_compcode.to_s+"_"+@HeadPack.pli_local_type.to_s) end %>
Port of Discharge
Final Destination
Country Of Final Destination
Vessel/Flight No
Port of Loading
Country Origin
Currency 
Conversion Rate
<% cndate = '' if @HeadPack!=nil if @HeadPack.pli_ref_date!=nil && @HeadPack.pli_ref_date!='' sndat = Date.parse(@HeadPack.pli_ref_date.to_s) cndate = ndat.strftime("%d-%b-%Y") end end %>
Ref. No
Ref. Date
C.I.F/F.O.B
<% if @FootPack!=nil && @FootPack.length >0 %> <%=render "layouts/common/main_export_invoice" %> <% else %> <% for i in 1..3 do %> <% end %> <% end %>
Sl.No. Cust.Prod.Code Description Of Goods JO NO B.PO No Quantity Unit List/Spl.Price Discount % Amount Total Amount BoxNo
 <%=i%>   R 
Image Upload
<% myfilesid = '' compcode = '' fl = 1 c1 = 0; if @HeadPack!=nil myfilesid = @HeadPack.pli_number compcode = @HeadPack.pli_compcode end obfile = get_invoice_attached_file(compcode,myfilesid) if obfile.length >0 obfile.each do |fila| %> <% fl +=1 c1 +=1 end end %>
 View    
      
Freight 
Packing
MIS(%) 
<% hidecancel = "" if @HeadPack!=nil && @HeadPack.pli_status == 'C' hidecancel = "hidden" end if @paymentRcvd hidecancel = "hidden" end %>
<% if @HeadPack!=nil %> <% end %> <% if@printpath!=nil %> <% end %>
<% algst ='hidden' alcgst = '' if @HeadPack!=nil if @HeadPack.pli_cust_locality == 'out' algst ='' alcgst = 'hidden' else algst ='hidden' alcgst = '' end end algst ='hidden' alcgst = 'hidden' %> <% mtgrandtotal = 0 if @HeadPack!=nil if @HeadPack.pli_grand_total_amount.to_f >0 mtgrandtotal = @HeadPack.pli_grand_total_amount else mtgrandtotal = @HeadPack.pli_net_amount end end %>
Total Quantity
Total Value
Total Discount Amt
Amount
Total Amount
Disc. Amount (On Total Amt.)
Net Amount
 Print Pack List
<% end %>
<%=render 'layouts/common/new_payment_terms'%>