update seed
This commit is contained in:
@@ -4,7 +4,7 @@ class CreatePrintSettings < ActiveRecord::Migration[5.1]
|
||||
t.string :name, :null => false
|
||||
t.string :unique_code, :null => false
|
||||
t.string :template
|
||||
t.string :font
|
||||
t.string :font, :default => ""
|
||||
t.string :printer_name, :null => false
|
||||
t.string :api_settings
|
||||
t.decimal :page_width, :null => false, :default => 210
|
||||
|
||||
18
db/seeds.rb
18
db/seeds.rb
@@ -102,6 +102,10 @@ customer_type = Lookup.create([{lookup_type:'customer_type', name: 'Dinein', val
|
||||
units = Lookup.create([{lookup_type:'unit', name: 'PCS', value: 'pcs'},
|
||||
{lookup_type:'unit', name: 'KG', value: 'kg'}])
|
||||
|
||||
|
||||
# Country
|
||||
countries = Lookup.create({lookup_type:'country', name: 'Japan', value: 'Japan'})
|
||||
|
||||
# Default CUSTOMER
|
||||
customer = Customer.create({name:"WALK-IN", email: "cus1@customer.com", contact_no:"000000000",card_no:"000", customer_type:"Dinein", tax_profiles:["2", "1"]})
|
||||
customer2 = Customer.create({name:"TAKEAWAY", email: "cus2@customer.com", contact_no:"111111111",card_no:"111", customer_type:"Takeaway", tax_profiles:["1"]})
|
||||
@@ -167,14 +171,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",font:"", page_width: 210, page_height: 1450})
|
||||
order_station2=PrintSetting.create({name: "Order Summary", unique_code: "OrderSummaryPdf", printer_name: "Cashier", precision: "0", delimiter: "0", heading_space: "5",font:"", page_width: 210, page_height: 1450})
|
||||
request_bill_printer=PrintSetting.create({name: "Receipt Bill", unique_code: "ReceiptBillPdf", printer_name: "Cashier", precision: "0", delimiter: "0", heading_space: "5",font:"", page_width: 210, page_height: 1450})
|
||||
close_cashier_printer=PrintSetting.create({name: "Close Cashier", unique_code: "CloseCashierPdf", printer_name: "Cashier", precision: "0", delimiter: "0", heading_space: "5",font:"", page_width: 210, page_height: 1450})
|
||||
crm_order_printer=PrintSetting.create({name: "CRM Order", unique_code: "CrmOrderPdf", printer_name: "Cashier", precision: "0", delimiter: "0", heading_space: "5",font:"", page_width: 210, page_height: 1450})
|
||||
queue_no_printer=PrintSetting.create({name: "Queue No", unique_code: "QueueNoPdf", printer_name: "Cashier", precision: "0", delimiter: "0", heading_space: "5",font:"", page_width: 210, page_height: 1450})
|
||||
order_item_printer=PrintSetting.create({name: "OrderItemPdf", unique_code: "OrderItemPdf", printer_name: "Cashier", precision: "0", delimiter: 0, heading_space: 5, page_width: 210, page_height: 1450})
|
||||
order_summary_printer=PrintSetting.create({name: "Order Summary", unique_code: "OrderSummaryPdf", printer_name: "Cashier", precision: "0", delimiter: 0, heading_space: 5, page_width: 210, page_height: 1450})
|
||||
request_bill_printer=PrintSetting.create({name: "Receipt Bill", unique_code: "ReceiptBillPdf", printer_name: "Cashier", precision: "0", delimiter: 0, heading_space: 5, page_width: 210, page_height: 1450})
|
||||
close_cashier_printer=PrintSetting.create({name: "Close Cashier", unique_code: "CloseCashierPdf", printer_name: "Cashier", precision: "0", delimiter: 0, heading_space: 5, page_width: 210, page_height: 1450})
|
||||
crm_order_printer=PrintSetting.create({name: "CRM Order", unique_code: "CrmOrderPdf", printer_name: "Cashier", precision: "0", delimiter: 0, heading_space: 5, page_width: 210, page_height: 1450})
|
||||
queue_no_printer=PrintSetting.create({name: "Queue No", unique_code: "QueueNoPdf", printer_name: "Cashier", precision: "0", delimiter: 0, heading_space: 5, page_width: 210, page_height: 1450})
|
||||
|
||||
cashier_terminal = CashierTerminal.create({name:"Terminal 1"})
|
||||
cashier_terminal = CashierTerminal.create({name:"Terminal 1", printer_name: "Cashier"})
|
||||
|
||||
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