Merge branch 'adminbsb_material_ui' of bitbucket.org:code2lab/sxrestaurant
This commit is contained in:
15
db/migrate/20170825093252_createss_commissions.rb
Executable file
15
db/migrate/20170825093252_createss_commissions.rb
Executable file
@@ -0,0 +1,15 @@
|
||||
class CreateCommissions < ActiveRecord::Migration[5.1]
|
||||
# rake db:migrate:down VERSION=20170825093252
|
||||
def change
|
||||
create_table :commissions, id: false do |t|
|
||||
t.string :commission_id, limit: 16, primary_key: true # custom primary key
|
||||
t.string :name
|
||||
t.string :product_type
|
||||
t.json :product_code
|
||||
t.string :commission_type
|
||||
t.integer :amount
|
||||
t.boolean :is_active, default: true
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
5
db/migrate/20170825093252_create_commissions.rb → db/migrate/20171106102000_create_commissions.rb
Executable file → Normal file
5
db/migrate/20170825093252_create_commissions.rb → db/migrate/20171106102000_create_commissions.rb
Executable file → Normal file
@@ -3,9 +3,9 @@ class CreateCommissions < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
create_table :commissions, id: false do |t|
|
||||
t.string :commission_id, limit: 16, primary_key: true # custom primary key
|
||||
|
||||
t.string :name
|
||||
t.string :product_type
|
||||
t.string :product_code
|
||||
t.json :product_code
|
||||
t.string :commission_type
|
||||
t.integer :amount
|
||||
t.boolean :is_active, default: true
|
||||
@@ -13,3 +13,4 @@ class CreateCommissions < ActiveRecord::Migration[5.1]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
14
db/seeds.rb
14
db/seeds.rb
@@ -167,16 +167,14 @@ admin_employee = Employee.create({name: "Waiter", role: "waiter", password: "111
|
||||
admin_employee = Employee.create({name: "Waiter 2", role: "waiter", password: "22222", emp_id:"222", created_by: "SYSTEM DEFAULT"})
|
||||
admin_employee = Employee.create({name: "Cashier", role: "cashier", password: "33333", emp_id:"333", created_by: "SYSTEM DEFAULT"})
|
||||
|
||||
order_station1=PrintSetting.create({name: "OrderItemPdf", unique_code: "OrderItemPdf", printer_name: "Cashier", precision: "0", delimiter: "0", heading_space: "5"})
|
||||
order_station2=PrintSetting.create({name: "Order Summary", unique_code: "OrderSummaryPdf", printer_name: "Cashier", precision: "0", delimiter: "0", heading_space: "5"})
|
||||
request_bill_printer=PrintSetting.create({name: "Receipt Bill", unique_code: "ReceiptBillPdf", printer_name: "Cashier", precision: "0", delimiter: "0", heading_space: "5"})
|
||||
close_cashier_printer=PrintSetting.create({name: "Close Cashier", unique_code: "CloseCashierPdf", printer_name: "Cashier", precision: "0", delimiter: "0", heading_space: "5"})
|
||||
crm_order_printer=PrintSetting.create({name: "CRM Order", unique_code: "CrmOrderPdf", printer_name: "Cashier", precision: "0", delimiter: "0", heading_space: "5"})
|
||||
queue_no_printer=PrintSetting.create({name: "Queue No", unique_code: "QueueNoPdf", printer_name: "Cashier", precision: "0", delimiter: "0", heading_space: "5"})
|
||||
order_station1=PrintSetting.create({name: "OrderItemPdf", unique_code: "OrderItemPdf", printer_name: "Cashier", precision: "0", delimiter: "0", heading_space: "5",font:""})
|
||||
order_station2=PrintSetting.create({name: "Order Summary", unique_code: "OrderSummaryPdf", printer_name: "Cashier", precision: "0", delimiter: "0", heading_space: "5",font:""})
|
||||
request_bill_printer=PrintSetting.create({name: "Receipt Bill", unique_code: "ReceiptBillPdf", printer_name: "Cashier", precision: "0", delimiter: "0", heading_space: "5",font:""})
|
||||
close_cashier_printer=PrintSetting.create({name: "Close Cashier", unique_code: "CloseCashierPdf", printer_name: "Cashier", precision: "0", delimiter: "0", heading_space: "5",font:""})
|
||||
crm_order_printer=PrintSetting.create({name: "CRM Order", unique_code: "CrmOrderPdf", printer_name: "Cashier", precision: "0", delimiter: "0", heading_space: "5",font:""})
|
||||
queue_no_printer=PrintSetting.create({name: "Queue No", unique_code: "QueueNoPdf", printer_name: "Cashier", precision: "0", delimiter: "0", heading_space: "5",font:""})
|
||||
|
||||
cashier_terminal = CashierTerminal.create({name:"Terminal 1"})
|
||||
cashier_terminal2 = CashierTerminal.create({name:"Terminal 2"})
|
||||
cashier_terminal3 = CashierTerminal.create({name:"Terminal 3"})
|
||||
|
||||
zone = Zone.create({id:1, name: "H1", is_active:true, created_by: "SYSTEM DEFAULT"})
|
||||
table = Table.create({name:"61", zone: zone, status:"available", seater: 2 , order_by:1, created_by:"SYSTEM DEFAULT"})
|
||||
|
||||
Reference in New Issue
Block a user