| From Date : <%= @from.utc.getlocal.strftime("%Y-%b-%d") rescue '-' %> - To Date : <%= @to.utc.getlocal.strftime("%Y-%b-%d") rescue '-'%> | |||||||
|---|---|---|---|---|---|---|---|
| Shift Name = <%= @shift_from %> - <%= @shift_to %> ( <%= cashier_name %> ) | |||||||
| Menu Category | Code | Product | Total Item | Unit Price | Revenue | ||
| <%= sale.account_name %> | Total Price By <%= sale.account_name %> | <% @totalByAccount.each do |account, total| %> <% if sale.account_id == account %> <%= total %> <% grand_total += total %> <% end %> <% end %> | |||||
| <% if !cate_arr.include?(sale.menu_category_id) %> | <%= sale.menu_category_name %> | <% cate_arr.push(sale.menu_category_id) %> <% else %><% end %> | <%= sale.item_code rescue '-' %> | <%= sale.product_name rescue '-' %> | <%= sale.total_item rescue '-' %> | <%= sale.unit_price rescue '-' %> | <%= sale.grand_total rescue '-' %> |
| Sub Total | <%= sub_total %> | ||||||
| Total Item | <%= total_qty%> | Total Amount | <%= grand_total%> | ||||
| Cash Received | <%= @cash_data - @change_amount %> | ||||||
| Card Sales | <%= @card_data %> | ||||||
| Credit Sales | <%= @credit_data %> | ||||||
| FOC Sales | <%= @foc_data %> | ||||||
| Discount Amount | <%= @discount_data %> | ||||||
| Grand Total | <%= @grand_total - @change_amount%> | ||||||