fix foodcourt sales transaction

This commit is contained in:
Thein Lin Kyaw
2023-08-24 10:40:31 +06:30
parent 5503852217
commit a97b6bff3f
22 changed files with 361 additions and 453 deletions

View File

@@ -1,10 +1,13 @@
if @status == true
json.status :success
json.id @order.id
json.booking_id @booking.id
json.order_id @order.id
json.order_items do
json.array! @order.order_items, :item_code, :item_name, :qty, :options, :remark
end
if @sale
json.sale_id @sale.sale_id
end
else
json.status :error
if @error_messages