Receipt No : <%=@sale_data.receipt_no rescue ' '%> Receipt Date : <%=@sale_data.receipt_date.utc.getlocal.strftime("%d/%m/%Y - %I:%M %p") rescue '-'%> Table No <% if @sale_data%>- <%=@sale_data.receipt_no%><% end %> Sale Id <% if @sale_data %><%=@sale_data.sale_id %><% end %>
Items QTY Price
<% sub_total = 0 %> <% @sale_data.sale_items.each do |sale_item| %> <% sub_total += sale_item.qty*sale_item.unit_price%> <%end %>
<%=sale_item.product_name%>@<%=sale_item.unit_price%> <%=sale_item.qty%> <%=(sale_item.qty*sale_item.unit_price)%>
AMOUNT DUE
<%= @sale_data.grand_total %>

CASH
<%= @cash %>

CREDIT
0.0

OTHERS PAYMENT
0.0

BALANCE
<%= @sale_data.grand_total %>

1
2
3
1000
4
5
6
5000
7
8
9
10000
0
.
00
50000
DEL
CLR
PAY