update quickservice

This commit is contained in:
Aung Myo
2018-02-09 11:32:29 +06:30
parent a64fc8a4f5
commit edade3662b
9 changed files with 243 additions and 74 deletions

View File

@@ -69,13 +69,6 @@ class Origami::PaymentsController < BaseOrigamiController
sale_id = params[:sale_id]
member_info = nil
if params[:type] == "quick_service"
booking = Booking.find_by_sale_id(sale_id)
booking.booking_orders.each do |order|
Order.pay_process_order_queue(order.order_id,booking.dining_facility_id)
end
end
if(Sale.exists?(sale_id))
saleObj = Sale.find(sale_id)
shop_details = Shop::ShopDetail
@@ -147,6 +140,13 @@ class Origami::PaymentsController < BaseOrigamiController
printer = Printer::ReceiptPrinter.new(print_settings)
printer.print_receipt_bill(print_settings,cashier_terminal,saleObj.sale_items,saleObj,customer.name, item_price_by_accounts, discount_price_by_accounts, member_info,rebate_amount,shop_details, "Paid",current_balance,card_data)
if params[:type] == "quick_service"
booking = Booking.find_by_sale_id(sale_id)
booking.booking_orders.each do |order|
Order.pay_process_order_queue(order.order_id,booking.dining_facility_id)
end
end
end
end
end