<% 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 %>
<% 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%>
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%> <%end %>
<%= 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 ))%>
MMQR Payment

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 %>
" id="server_mode">
<%= link_to '/foodcourt/app_orders', class: 'btn btn-block btn-default waves-effect', :id => 'foodcourt_back', style: "padding-top: 0;" do%> reply BACK <% end %> <% if @sale_payment.nil? %>
<% if current_login_employee.role == "cashier" %> Void Edit <% else %>
<% end %> <% end %> <% end %>
<%= render "layouts/read_modal" %>