shift open/close
This commit is contained in:
@@ -8,7 +8,7 @@ class CreatePaymentJournals < ActiveRecord::Migration[5.1]
|
||||
t.string :payment_method,:null => false, :default => "CASH"
|
||||
t.string :payment_status,:null => false, :default => "NEW"
|
||||
t.string :payment_method_references
|
||||
|
||||
t.integer :created_by, :null => false
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
@@ -82,6 +82,12 @@ void_reason = Lookup.create([{lookup_type:'void_reason', name: 'Approve By Manag
|
||||
{lookup_type:'void_reason', name: 'Cashier Mistake', value: 'Cashier Mistake'},
|
||||
{lookup_type:'void_reason', name: 'Waiter Mistake', value: 'Waiter Mistake'}])
|
||||
|
||||
# sale void reason
|
||||
float_value = Lookup.create([{lookup_type:'float_value', name: '500', value: '500'},
|
||||
{lookup_type:'float_value', name: '1000', value: '1000'},
|
||||
{lookup_type:'float_value', name: '5000', value: '5000'},
|
||||
{lookup_type:'float_value', name: '10000', value: '10000'}])
|
||||
|
||||
#WALK CUSTOMER - Default CUSTOMER (take key 1)
|
||||
customer = Customer.create({name:"WALK-IN", email: "cus1@customer.com", contact_no:"000000000",card_no:"000"})
|
||||
customer2 = Customer.create({name:"TAKEAWAY", email: "cus2@customer.com", contact_no:"111111111",card_no:"111"})
|
||||
@@ -173,4 +179,5 @@ payment_methods = PaymentMethodSetting.create({payment_method:"JCB",gateway_url:
|
||||
payment_methods = PaymentMethodSetting.create({payment_method:"Master",gateway_url: "http://192.168.1.47:3006"})
|
||||
payment_methods = PaymentMethodSetting.create({payment_method:"Redeem",gateway_url: "http://192.168.1.47:3006",merchant_account_id:"vWSsseoZCzxd6xcNf_uS"})
|
||||
|
||||
cashier_terminal = CashierTerminal.create({name:"Terminal 1"})
|
||||
puts " Finished System Default Set Up Data "
|
||||
|
||||
Reference in New Issue
Block a user