add cashier zone in ui
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
class CashierTerminal < ApplicationRecord
|
||||
has_many :cashier_terminal_by_zones
|
||||
has_many :zones, through: :cashier_terminal_by_zones
|
||||
end
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
class CashierTerminalByZone < ApplicationRecord
|
||||
belongs_to :zone
|
||||
belongs_to :cashier_terminal
|
||||
end
|
||||
|
||||
@@ -3,6 +3,7 @@ class Zone < ApplicationRecord
|
||||
has_many :tables, dependent: :destroy
|
||||
has_many :rooms, dependent: :destroy
|
||||
has_many :order_queue_stations
|
||||
has_many :cashier_terminals
|
||||
|
||||
# validations
|
||||
validates_presence_of :name, :created_by
|
||||
|
||||
Reference in New Issue
Block a user