emenu api integrated

This commit is contained in:
Min Zeya Phyo
2017-04-19 18:37:07 +06:30
parent a717791a7c
commit c4e76c53b2
23 changed files with 158 additions and 55 deletions

View File

@@ -2,9 +2,11 @@ class CreateMenuCategories < ActiveRecord::Migration[5.0]
def change
create_table :menu_categories do |t|
t.references :menu, foreign_key: true
t.string :code, :null => false
t.string :name, :null => false
t.string :alt_name
t.integer :order_by
t.string :created_by, :null => false
t.references :menu_category, :null => true
t.timestamps

View File

@@ -8,6 +8,7 @@ class CreateEmployees < ActiveRecord::Migration[5.0]
t.string :token_session
t.datetime :session_expiry
t.datetime :session_last_login
t.string :created_by
t.timestamps
end
end

View File

@@ -14,7 +14,7 @@ class CreateSales < ActiveRecord::Migration[5.0]
t.decimal :total_discount, :precision => 10, :scale => 2, :null => false, :default => 0.00
t.decimal :total_tax, :precision => 10, :scale => 2, :null => false, :default => 0.00
t.string :tax_type, :null => false , :dfault => "exclusive_tax"
t.decimal :grant_total, :precision => 10, :scale => 2, :null => false, :default => 0.00
t.decimal :grand_total, :precision => 10, :scale => 2, :null => false, :default => 0.00
t.decimal :rounding_adjustment, :precision => 10, :scale => 2, :null => false, :default => 0.00
t.decimal :amount_received, :precision => 10, :scale => 2, :null => false, :default => 0.00
t.decimal :amount_changed, :precision => 10, :scale => 2, :null => false, :default => 0.00