fix bug update_shift
This commit is contained in:
@@ -699,7 +699,8 @@ class SalePayment < ApplicationRecord
|
||||
|
||||
# update for cashier shift
|
||||
def update_shift
|
||||
shift = ShiftSale.current_open_shift(self.action_by.id)
|
||||
current_shift_user = Employee.find_by_id(self.action_by.id)
|
||||
shift = ShiftSale.current_open_shift(current_shift_user)
|
||||
|
||||
if shift.nil?
|
||||
current_shift_user = Employee.find_by_id(self.sale.cashier_id)
|
||||
|
||||
Reference in New Issue
Block a user