update long bill
This commit is contained in:
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user