shop code
This commit is contained in:
@@ -6,7 +6,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.nil?
|
||||
if !ShiftSale.current_shift(@shop.shop_code).nil?
|
||||
#create Bill by Booking ID
|
||||
table = 0
|
||||
if (params[:booking_id])
|
||||
@@ -161,7 +161,7 @@ class Api::BillController < Api::ApiController
|
||||
@status, @booking = @order.generate
|
||||
|
||||
if @status && @booking
|
||||
shift = ShiftSale.current_open_shift(current_login_employee.id)
|
||||
shift = ShiftSale.current_open_shift(current_login_employee)
|
||||
if !shift.nil?
|
||||
cashier = Employee.find(shift.employee_id)
|
||||
if (@booking.booking_id)
|
||||
|
||||
Reference in New Issue
Block a user