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 %>
Customer : Default Customer Points : 1234
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
<%= @other %>

Balance
<%= @sale_data.grand_total %>

1
2
3
4
5
6
7
8
9
0
.
00
Nett
Del
Clr
1000
3000
5000
10000
Pay