<%= 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 %>
Buyer
checked="checked"<% elsif @srctchkd!=nil && @srctchkd=='N' %><% else %>checked="checked"<% end %> id="isselecteddated" name="isselecteddated" value="Y"/>With Dt
From Date[*]
Upto Date[*]
Status
Order By : checked="checked"<% end %>/> OA No  checked="checked"<% end %>/> Customer  checked="checked"<% end %>/> Catlogue  checked="checked"<% end %>/>Date ||  checked="checked"<% elsif @isWithValue && !@Swithvalues%>checked="checked" <% end %>/>With Value
<% globaltruewithval = false if @Swithvalues!=nil && @Swithvalues == 'Y' globaltruewithval = true elsif @isWithValue!=nil && !@Swithvalues globaltruewithval = true end %>
<% if globaltruewithval%> <% end %> <% i = 1 if @OrdList!=nil && @OrdList.length >0 @OrdList.each do |ords| %> <% if globaltruewithval%> <% end %> <% i +=1 end %> <% else %> <% end %>
SL. NO. QA No Order dt. Buyer Name Catlogue No. Order Qty. Rate Value Stock in Hand Weight Net Weight Priority Status
<%=i%> <%=ords.dt_billnumber%> <%=ords.billdate%> <%=ords.hd_invoiceto%> <%=ords.dt_itemname%> <%=ords.qnty.to_i%> <%=currency_formatted(ords.dt_rate.to_f)%> <%=currency_formatted(ords.dt_values.to_f)%> <% cbstock = 0 cobsobj = get_stocks_detail(ords.dt_compcode,ords.dt_itemcode) if cobsobj cbstock = cobsobj.tstock end %> <%=cbstock.to_i%> <% netweight = 0 prdobj = get_name_of_product(ords.dt_compcode,ords.dt_itemcode) if prdobj netweight = prdobj.pd_weight end %> <%=netweight%> <% ntwts = ( netweight.to_f*ords.qnty.to_f ) %> <%=currency_formatted(ntwts).to_f >0 ? currency_formatted(ntwts) : 0 %> <%=ords.hd_priority%> <%=ords.hd_ord_status%>
No Record(s) Found.
<% if @OrdPrint!=nil %>   <% end %>
<% c = 1 if @PrdList!=nil && @PrdList.length >0 @PrdList.each do |oapds| %> <% c +=1 end %> <% else %> <% end %>
SL. NO. Product Total Qty Order Total Order High Priority Qty
<%=c%> <%=oapds.dt_itemname%> <%=oapds.qnty%> <%=oapds.torders%> <% highqty = 0 hgqtyobj = get_high_priority_qtydetail(oapds.dt_compcode,oapds.dt_billnumber,oapds.dt_sale_type,oapds.hd_priority) if hgqtyobj highqty = hgqtyobj[0].hightqty end %> <%=highqty%>
No Record(s) Found.
<% if @PrdwPrint!=nil %>   <% end %>

Avg Annual Order: <% if @AverageAnumOrd!=nil %><%=currency_formatted(@AverageAnumOrd[0].averageYearOrder)%><% end %>

Avg. Annual Sale: <% if @AverageAnumSale!=nil %><%=currency_formatted(@AverageAnumSale[0].averageYearSale)%><% end %>

*Calculation on basis of Financial yr.

Graph of total order,total qty,total value

Monthly
<% end %>