check shift sale process
This commit is contained in:
@@ -290,13 +290,8 @@ class Origami::SplitBillController < BaseOrigamiController
|
|||||||
|
|
||||||
sale = Sale.new
|
sale = Sale.new
|
||||||
status, sale_id = sale.generate_invoice_from_booking(booking.booking_id, current_user, current_user)
|
status, sale_id = sale.generate_invoice_from_booking(booking.booking_id, current_user, current_user)
|
||||||
sale_data = Sale.find_by_sale_id(sale_id)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Bind shift sale id to sale
|
|
||||||
# sale_data.shift_sale_id = shift_by_terminal.id
|
|
||||||
# sale_data.save
|
|
||||||
|
|
||||||
Promotion.promo_activate(sale)
|
Promotion.promo_activate(sale)
|
||||||
|
|
||||||
BillBroadcastJob.perform_later(table)
|
BillBroadcastJob.perform_later(table)
|
||||||
|
|||||||
Reference in New Issue
Block a user