update long bill

This commit is contained in:
Aung Myo
2017-07-21 17:07:31 +06:30
parent a0edef735d
commit c5dbbea76d
2 changed files with 4 additions and 2 deletions

View File

@@ -1,4 +1,3 @@
class Booking < ApplicationRecord
self.primary_key = "booking_id"
@@ -14,6 +13,7 @@ class Booking < ApplicationRecord
def self.update_dining_facility(booking_arr, newd, old)
table = DiningFacility.find(newd)
exist = table.get_booking
if exist
# order exists
booking_arr.each do |booking|