update bill controler

This commit is contained in:
Aung Myo
2017-12-07 08:59:39 +06:30
parent b9b7d963ae
commit 04b27489dd

View File

@@ -15,7 +15,7 @@ class Api::BillController < Api::ApiController
cashier_zone = CashierTerminalByZone.find_by_zone_id(table.zone_id)
shift_by_terminal = ShiftSale.find_by_cashier_terminal_id(cashier_zone.cashier_terminal_id)
shift_by_terminal = ShiftSale.find_by_cashier_terminal_id_and_shift_closed_at(cashier_zone.cashier_terminal_id,nil)
get_cashier_by_terminal = Employee.find(shift_by_terminal.employee_id)
if booking