<% if !@print_settings.nil? %> <% if @print_settings.precision.to_i > 0 precision = @print_settings.precision else precision = 0 end #check delimiter if @print_settings.delimiter delimiter = "," else delimiter = "" end %> <% end %>
Please Wait...
<% if @error %>
<% end %>
Receipt No :
<%=@sale_data.receipt_no rescue ' '%>
Receipt Date :
<%=@sale_data.receipt_date.strftime("%d/%m/%Y-%I:%M %p") rescue '-' %>
Table No :
<%=@table_no%>
<%if !@dining.nil?%><%= @dining.id%><%end%>
Sale ID :
<% if @sale_data %><%=@sale_data.sale_id %><% end %>
Checkin Time :
<%if !@checkin_time.nil?%><%= @checkin_time.strftime("%I:%M %p") %> <%end%>
#
Items
QTY
Price
<% sub_total = 0 count = 0 %> <% @sale_data.sale_items.each do |sale_item| count += 1 %> <% sub_total += sale_item.price%>
<%= count %>
<%=sale_item.product_name%>@<%=number_with_precision( sale_item.unit_price, precision: precision.to_i )%>
<%=sale_item.qty%>
<%=(number_with_precision(sale_item.price, precision: precision.to_i ))%>
<%end %>
Amount Due: <% if !@sale_payment.nil? %>( Credit )<% end %>
<% if @sale_payment.nil? %> <%= number_with_precision(@sale_data.grand_total, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i)%> <% else %> <%= number_with_precision(@sale_payment[0].payment_amount, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i)%> <% end %>
<% if @sale_payment.nil? %> <%= number_with_precision(@sale_data.grand_total, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i ) %> <% else %> <%= number_with_precision(@sale_payment[0].payment_amount, precision: precision.to_i ) rescue number_with_precision(0, precision: precision.to_i)%> <% end %>
" id="server_mode">
[ Complete Payment With MMQR ]
<%= link_to '/foodcourt/app_orders', class: 'btn btn-block btn-default waves-effect', :id => 'foodcourt_back', style: "padding-top: 0;" do%>
reply
BACK <% end %>
Refresh
<% if @sale_payment.nil? %>
<% if current_login_employee.role == "cashier" %>
Foc
Void
Edit
<% else %>
> Foc
> Void
active="true">Edit
<% end %>
active="true">Discount
Charges
<%end %>
">
Please Enter Reason for Void
Please Enter Reason for FOC
Are you member?
<% if !@customer_lists.nil? %> <% @customer_lists.each do |cus| %> <% if cus.customer_id != @customer.id %>
<%= cus.name %>
<% end %> <% end %> <% end %>
Card Member
QR Code
Yes
No
Enter Access Code
×
1
2
3
4
5
6
7
8
9
0
Clr
OK
TAX
×
<% if !@tax_arr.empty? %> <% if @tax_arr.count > 1 %>
<% @i = 0 @tax_arr.each do |tax| %> <%= tax %> <% if @tax_arr.count != @i+1%> + <% @i =+1 %>
<%end%> <% end %>
<% @tax_arr.each_with_index do |tax, tax_index| %> <% if (tax_index+1)%2 == 0 %>
<% end %>
<%= tax %>
<% end %> <% else %>
<% @tax_arr.each do |tax| %>
<%= tax %>
<% end %> <% end %> <% end %>
No Tax
<%= render "layouts/read_modal" %>