account working
This commit is contained in:
10
db/migrate/20170602101727_create_accounts.rb
Normal file
10
db/migrate/20170602101727_create_accounts.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class CreateAccounts < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
create_table :accounts do |t|
|
||||
t.string :title
|
||||
t.string :account_type
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -70,6 +70,10 @@ booking_status = Lookup.create([{lookup_type:'booking_status', name: 'Available'
|
||||
{lookup_type:'booking_status', name: 'Cleaning', value: 'cleaning'},
|
||||
{lookup_type:'booking_status', name: 'Moved', value: 'moved'}])
|
||||
|
||||
#booking_status
|
||||
account_type = Lookup.create([{lookup_type:'account_type', name: 'Income', value: 'income'},
|
||||
{lookup_type:'account_type', name: 'Expense', value: 'expense'}])
|
||||
|
||||
#WALK CUSTOMER - Default CUSTOMER (take key 1)
|
||||
customer = Customer.create({id:1, name:"WALK-IN", contact_no:"000000000"})
|
||||
customer = Customer.create({id:2, name:"TAKEAWAY", contact_no:"000000000"})
|
||||
|
||||
Reference in New Issue
Block a user