×
<%= flash[:error] %>
<% end %>
<%= render "layouts/breadcrumbs" %>
<%= form_tag({:action=>'create'} ,:multipart=>true,:id=>"isMyForms" ) do %>
<% end %>
Total Open Orders

Open Orders
<%=@topenordes %>
Total Pending PO

Pending PO
<%=@tponumbers%>
Total Completed Orders

Completed Orders
<%=@tcompleorder%>
Total Invoices Balance

Total Invoices
<%=currency_formatted(@thisMonthInvoice).to_f >0 ? currency_formatted(@thisMonthInvoice) : '0.00'%>
Total Due Outstanding

Uncleared Bills
<%=currency_formatted(@totaloutstaning).to_f >0 ? currency_formatted(@totaloutstaning) : '0.00'%>
Description | Export | Local | PI | Total |
---|---|---|---|---|
Value | <% if @bExport.length >0 %><%="%.2f" % @bExport[0].dtValues.to_f%><% else %>0.00<% end %><% else %>0.00<% end %>"/> | <% if @bLocal.length >0 %><%="%.2f" % @bLocal[0].dtValues.to_f%><% else %>0.00<% end %> <% else %>0.00<% end %>"/> | <% if @bPI.length >0 %><%="%.2f" % @bPI[0].dtValues.to_f%><% else %>0.00<% end %><% else %>0.00<% end %>"/> | <% tbvalues = 0 if @bExport.length >0 tbvalues += @bExport[0].dtValues.to_f end if @bLocal.length >0 tbvalues += @bLocal[0].dtValues.to_f end if @bPI.length >0 tbvalues += @bPI[0].dtValues.to_f end %> <% tbquantity = 0 if @bExport.length >0 tbquantity += @bExport[0].dtqnty.to_i end if @bLocal.length >0 tbquantity += @bLocal[0].dtqnty.to_i end if @bPI.length >0 tbquantity += @bPI[0].dtqnty.to_i end %> <% avlcquantity = 0 avexpquantity = 0 avpiquantity = 0 tavgcost = 0 if @bExport.length >0 qnt = @bExport[0].dtqnty.to_i avcost = @bExport[0].dtValues.to_f if qnt.to_i >0 && tbvalues.to_f >0 avexpquantity1 = (avcost.to_f/qnt.to_i) avexpquantity = "%.2f" % avexpquantity1.to_f tavgcost += avexpquantity1.to_f end end if @bLocal.length >0 lcqt = @bLocal[0].dtqnty.to_i lval = @bLocal[0].dtValues.to_f if lcqt.to_i >0 && lval.to_f >0 avlcquantity1 = (lval.to_f/lcqt.to_i) avlcquantity = "%.2f" % avlcquantity1.to_f tavgcost += avlcquantity1.to_f end end if @bPI.length >0 piqnt = @bPI[0].dtqnty.to_i pivals = @bPI[0].dtValues.to_f if piqnt.to_i >0 && pivals.to_f >0 avpiquantity1 = (pivals.to_f/piqnt.to_i) avpiquantity = "%.2f" % avpiquantity1.to_f tavgcost += avpiquantity1.to_f end end %><%="%.2f" % tbvalues%> "/> |
Quantity | <% if @bExport.length >0 %><%=@bExport[0].dtqnty.to_i%><% else %>0<% end %> | <% if @bLocal.length >0 %><%=@bLocal[0].dtqnty.to_i%><% else %>0<% end %> | <% if @bPI.length >0 %><%=@bPI[0].dtqnty.to_i%><% else %>0<% end %> | <% if tbquantity %><%=tbquantity.to_i%><% else %>0<% end %> |
Avg Quantity Cost | <% if avexpquantity.to_f >0 %><%=avexpquantity%><% else %>0.00<% end %> | <% if avlcquantity.to_f >0 %><%=avlcquantity%><% else %>0.00<% end %> | <% if avpiquantity.to_f >0 %><%=avpiquantity%><% else %>0.00<% end %> | <% if tavgcost.to_f >0 %><%="%.2f" % tavgcost.to_f %><% end %> <% end %>"/> |
Open Tabular Buyer-Order
<%
l1 = 1;
k = 1
if @buyresOrder.length >0
@buyresOrder.each do |byrs|
%>
<%
l1 +=1
end
end
%>
ORDER STATUS
Search
JOB Order | JO Date | Buyer | Product | JO QTY | PO QTY | MRN QTY | Pack QTY | Invoice QTY | JO Days | Status | Action |
---|---|---|---|---|---|---|---|---|---|---|---|
<%=lstns.dt_miod%> | <%=lstns.jodate%> | <%=lstns.buyername%> | <% pdnames = "" pdobj = get_name_of_product(@compcodes,lstns.dt_miprodcode) if pdobj pdnames = pdobj.pd_productname end %> <%=pdnames%> | <%=lstns.dt_miodqty%> | <%=lstns.dt_mipoqty%> | <%=lstns.dt_mrnqty%> | <%=lstns.dt_mipackqty%> | <%=lstns.dt_mipackinvqty%> | <%=lstns.jodues%> | <% if lstns.dt_mipackinvqty.to_f >=lstns.dt_miodqty.to_f %> Completed <% else %> Pending <% end %> | <% if lstns.closestatus !='Y' %> Update Status <% else %> Closed <% end %> |
No record(s) found. | |||||||||||
Total | <%=jtotalod%> | <%=jtotalpo%> | <%=jtotalmrn%> | <%=jtotalpack%> | <%=jtotalinvoice%> | <%=joduedays%> |
Calendar
**This section is under construction
Meetings
Birthdays
Special Events
AMC Dues