<% # if session[:req_username] && session[:req_username].to_s.downcase != session[:req_username] %>
Total Pending BO

Total Supplier Pending

Total Completed Orders

Total Invoices

Total Due Outstanding

Total Stock Value

Negative Stock Product(s)
User Log

Total Order This Month
Description | Export | Local | PI | Total |
---|---|---|---|---|
Value | <% if @bExport && @bExport.length >0 %><%="%.2f" % @bExport[0].dtValues.to_f%><% else %>0.00<% end %><% else %>0.00<% end %>"/> | <% if @bLocal && @bLocal.length >0 %><%="%.2f" % @bLocal[0].dtValues.to_f%><% else %>0.00<% end %> <% else %>0.00<% end %>"/> | <% if @bPI && @bPI.length >0 %><%="%.2f" % @bPI[0].dtValues.to_f%><% else %>0.00<% end %><% else %>0.00<% end %>"/> | <% tbvalues = 0 if @bExport && @bExport.length >0 tbvalues += @bExport[0].dtValues.to_f end if @bLocal && @bLocal.length >0 tbvalues += @bLocal[0].dtValues.to_f end if @bPI && @bPI.length >0 tbvalues += @bPI[0].dtValues.to_f end %> <% tbquantity = 0 if @bExport && @bExport.length >0 tbquantity += @bExport[0].dtqnty.to_i end if @bLocal && @bLocal.length >0 tbquantity += @bLocal[0].dtqnty.to_i end if @bPI && @bPI.length >0 tbquantity += @bPI[0].dtqnty.to_i end %> <% avlcquantity = 0 avexpquantity = 0 avpiquantity = 0 tavgcost = 0 if @bExport && @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 && @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 && @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 && @bExport.length >0 %><%=@bExport[0].dtqnty.to_i%><% else %>0<% end %> | <% if @bLocal && @bLocal.length >0 %><%=@bLocal[0].dtqnty.to_i%><% else %>0<% end %> | <% if @bPI && @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 %>"/> |
Order Age Calculation
checked="checked"<% end %> id="orddelvdate" onclick="process_calendar_filters(this.value,'ODD');" value="ODD" />Order Delivery Date
checked="checked"<% end %> id="popendingdate" onclick="process_calendar_filters(this.value,'PODT');" value="PODT" />PO Pending Date
checked="checked"<% end %> id="pendingpayment" onclick="process_calendar_filters(this.value,'PPMT');" value="PPMT"/>Pending Payment
checked="checked"<% end %> id="dispatchdated" onclick="process_calendar_filters(this.value,'DSD');" value="DSD"/>Dispatch/Ship Date
checked="checked"<% end %> id="birthdated" onclick="process_calendar_filters(this.value,'BTHD');" value="BTHD"/>Birthday