diff --git a/app/views/reports/waste_and_spoilage/index.xls.erb b/app/views/reports/waste_and_spoilage/index.xls.erb index 4b4fa0a3..48f26650 100755 --- a/app/views/reports/waste_and_spoilage/index.xls.erb +++ b/app/views/reports/waste_and_spoilage/index.xls.erb @@ -5,52 +5,77 @@
| - 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 | -+ | |
| + Receipt No :<%= sale.receipt_no %> + | ++ | + | Date : <%= sale.created_at.utc.getlocal.strftime("%e,%b %Y %I:%M %p") %> | +|||
| Menu Category | +Item Name | +Item Code | +Qty | +Price | +Total Price | +|
| <%= item.product_name %> | -<%= item.product_code %> | -<%= item.qty %> | -<%= item.price %> | -<%= item.price %> | -||
| Total Qty: | -- <%= waste_and_spoil_item_count %> - | -Grand Total: | -- - <%= sale.grand_total %> - - | -|||
| <%= sale.name %> | + <% menu_cat_arr.push(sale.name) %> + <% else %> ++ <% end %> + | <%= sale.product_name %> | +<%= sale.product_code %> | +<%= sale.qty.to_i %> | +<%= sale.unit_price %> | +<%= sale.price %> | +
| + | Total Qty: | ++ + <%= waste_and_spoil_item_count %> + <% waste_and_spoil_item_count = 0%> + | +Grand Total: | ++ + <%= sale.grand_total %> + + | +||