update seed generator and remove hard-coded customer id
This commit is contained in:
@@ -140,7 +140,7 @@ class Api::BillController < Api::ApiController
|
||||
@order = Order.new
|
||||
@order.source = "cashier"
|
||||
@order.order_type = "Takeaway"
|
||||
@order.customer_id = "CUS-000000000002" # for no customer id from mobile
|
||||
@order.customer_id = takeaway.customer_id # for no customer id from mobile
|
||||
@order.items = params[:order_items]
|
||||
@order.guest = params[:guest_info]
|
||||
@order.table_id = params[:table_id] # this is dining facilities's id
|
||||
|
||||
Reference in New Issue
Block a user