shop code
This commit is contained in:
@@ -7,7 +7,7 @@ class Api::BillController < Api::ApiController
|
||||
@status = false
|
||||
@error_message = "Order ID or Booking ID is require to request for a bill."
|
||||
# if shift_by_terminal = ShiftSale.current_open_shift(get_cashier[0].id)
|
||||
if !ShiftSale.current_shift(Shop.current_shop.shop_code).nil?
|
||||
if !ShiftSale.current_shift(@shop.shop_code).nil?
|
||||
#create Bill by Booking ID
|
||||
table = 0
|
||||
if (params[:booking_id])
|
||||
@@ -107,7 +107,7 @@ class Api::BillController < Api::ApiController
|
||||
|
||||
# unique_code = "ReceiptBillPdf"
|
||||
# #shop detail
|
||||
# shop_details = Shop.current_shop
|
||||
# shop_details = @shop
|
||||
|
||||
# customer= Customer.find(@sale_data.customer_id)
|
||||
# # get member information
|
||||
|
||||
Reference in New Issue
Block a user