Print close cashier

This commit is contained in:
yarzar_code
2020-01-14 14:21:46 +06:30
parent 270c2a821e
commit 4c69c1d5d2
6 changed files with 13 additions and 7 deletions

View File

@@ -1496,7 +1496,7 @@ end
end
if current_user.present? && !(current_user.role == 'administrator' || current_user.role == 'manager' || current_user.role == 'account' || current_user.role == 'supervisor')
if shift = ShiftSale.current_open_shift(current_user.id)
if shift = ShiftSale.current_open_shift(current_user)
query = query.where("shift_sale_id='#{shift.id}'")
end
@@ -1523,7 +1523,7 @@ end
end
if current_user.present? && !(current_user.role == 'administrator' || current_user.role == 'manager' || current_user.role == 'account' || current_user.role == 'supervisor')
if shift = ShiftSale.current_open_shift(current_user.id)
if shift = ShiftSale.current_open_shift(current_user)
query = query.where("shift_sale_id='#{shift.id}'")
end
end