update addorder move + and box

This commit is contained in:
Aung Myo
2018-02-16 09:46:55 +06:30
parent cf644892c9
commit 2f7f412150
3 changed files with 71 additions and 43 deletions

View File

@@ -1226,9 +1226,10 @@ end
end
def self.add_to_existing_pending_invoice(dining,sale_id,booking)
table = DiningFacility.find(dining)
existing_booking = Booking.find_by_sale_id(sale_id)
if dining.to_i > 0
table = DiningFacility.find(dining)
table.bookings.each do |booking|
# if !booking.checkout_at.nil?
# existing_booking.update_attributes(checkout_at: checkout_at)