shift
This commit is contained in:
@@ -9,5 +9,8 @@ class Origami::CashOutsController < BaseOrigamiController
|
||||
amount = params[:amount]
|
||||
p_jour = PaymentJournal.new
|
||||
p_jour.cash_out(reference, remark, amount, current_user.id)
|
||||
shift = ShiftSale.current_open_shift(current_user.id)
|
||||
shift.cash_out = shift.cash_out + amount.to_i
|
||||
shift.save
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user