sale receipt generation and bill api

This commit is contained in:
Min Zeya Phyo
2017-04-17 13:09:54 +06:30
parent 3e9a2a0ce7
commit 6a84a34a9f
15 changed files with 177 additions and 71 deletions

View File

@@ -1,8 +1,8 @@
class CreateSales < ActiveRecord::Migration[5.0]
def change
create_table :sales do |t|
t.integer :cashier_id, :null => false, :index => true
t.string :cashier_name, :null => false
t.integer :cashier_id, :index => true
t.string :cashier_name
t.string :requested_by, :null => false
t.datetime :requested_at, :null => false
t.string :receipt_no, :null => false