shift open/close
This commit is contained in:
@@ -247,12 +247,14 @@ class SalePayment < ApplicationRecord
|
||||
end
|
||||
self.sale.sale_status = "completed"
|
||||
self.sale.save!
|
||||
shift = ShiftSale.current_open_shift(self.sale.cashier_id)
|
||||
if shift
|
||||
shift.update(self.sale)
|
||||
end
|
||||
table_update_status(sObj)
|
||||
rebat(sObj)
|
||||
shift = ShiftSale.current_open_shift(self.sale.cashier_id)
|
||||
puts shift
|
||||
if !shift.nil?
|
||||
puts ">>>> shift >>>>>>"
|
||||
shift.update(self.sale)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user