shift close and payment journal

This commit is contained in:
Min Zeya Phyo
2017-06-28 10:34:42 +06:30
parent c1646b812e
commit ee651763b7
36 changed files with 308 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
class CreatePaymentJournals < ActiveRecord::Migration[5.1]
def change
create_table :payment_journals do |t|
t.string :payment_references,:null => false
t.string :remark
t.decimal :credit_amount, :precision => 10, :scale => 2, :null => false, :default => 0.00
t.decimal :debit_amount, :precision => 10, :scale => 2, :null => false, :default => 0.00
t.string :payment_method,:null => false, :default => "CASH"
t.string :payment_status,:null => false, :default => "NEW"
t.string :payment_method_references
t.timestamps
end
end
end