multiple sale and order
This commit is contained in:
@@ -9,6 +9,7 @@ class Booking < ApplicationRecord
|
||||
belongs_to :sale, :optional => true
|
||||
has_many :booking_orders
|
||||
has_many :orders, :through => :booking_orders
|
||||
scope :active, -> {where("booking_status != 'moved'")}
|
||||
|
||||
def self.update_dining_facility(booking_arr, newd, old)
|
||||
booking_arr.each do |booking|
|
||||
|
||||
Reference in New Issue
Block a user