<%= render :partial=>'shift_sale_report_filter',
:locals=>{ :period_type => true, :shift_name => true,:payments => true, :report_path =>reports_waste_and_spoilage_index_path} %>
Report For <%= @sale_type? @sale_type : 'Waste' %>
<% @sale_data.each do |sale| %>
<% waste_and_spoil_item_count = 0%>
|
Receipt No :<%= sale.receipt_no %>
|
|
Date : <%= sale.created_at.utc.getlocal.strftime("%e,%b %Y %I:%M %p") %> |
| Item Name |
Item Code |
Qty |
Price |
Total Price |
<% sale.sale_items.each do |item| %>
<% if !item.item_instance_code.nil?%>
<% waste_and_spoil_item_count += item.qty.to_i%>
| <%= item.product_name %> |
<%= item.product_code %> |
<%= item.qty %> |
<%= item.price %> |
<%= item.price %> |
<% end %>
<% end %>
| Total Qty: |
<%= waste_and_spoil_item_count %>
|
Grand Total: |
<%= sale.grand_total %>
|
<% end %>