add alt name to order and sale items and update seeds

This commit is contained in:
Yan
2017-06-30 16:00:03 +06:30
parent fd0ae922eb
commit b0bec2afc4
9 changed files with 24 additions and 16 deletions

View File

@@ -7,6 +7,7 @@ class CreateOrderItems < ActiveRecord::Migration[5.1]
t.string :item_order_by #person who order this
t.string :item_code, :null => false
t.string :item_name, :null => false
t.string :alt_name, :null => false
t.integer :account_id, :limit => 8, :null => false, :default => 1
t.decimal :qty, :precision => 10, :scale => 2, :null => false, :default => 0.00
t.decimal :price, :precision => 10, :scale => 2, :null => false, :default => 0.00