update for multiple cashier

This commit is contained in:
Yan
2017-10-23 16:49:09 +06:30
parent 47efe20e8e
commit 857ab0ae14
2 changed files with 8 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ class ShiftSale < ApplicationRecord
self.shift_started_at = DateTime.now
self.employee_id = current_user.id
self.opening_balance = opening_balance
self.other_sales = 0
self.save
end