modify api and change rounding adj

This commit is contained in:
phyusin
2018-04-11 10:28:33 +06:30
parent 590ee16aa4
commit 27e70f1a86
7 changed files with 14 additions and 8 deletions

View File

@@ -21,7 +21,7 @@ class CreateShiftSales < ActiveRecord::Migration[5.1]
t.integer :dining_count, :default => 0
t.integer :takeaway_count, :default => 0
t.integer :member_count, :default => 0
t.integer :total_rounding, :default => 0
t.decimal :total_rounding,, :precision => 10, :scale => 2, :null => false, :default => 0.00
t.integer :total_receipt, :default => 0
t.decimal :total_void, :default => 0
t.timestamps

View File

@@ -5,6 +5,7 @@ class CreateOrderReservations < ActiveRecord::Migration[5.1]
t.string :order_reservation_type, :null => false
t.string :customer_id, :null => false
t.datetime :requested_time, :null => false
t.string :callback_url, :null => false
t.integer :item_count, :null => false, :default => 0
t.integer :total_customer
t.string :payment_type