This commit is contained in:
parent
052d297bff
commit
f3493b3242
2 changed files with 27 additions and 1 deletions
|
|
@ -391,7 +391,7 @@ class Order < ApplicationRecord
|
|||
note = transaction_note
|
||||
group_orders.includes(:ordergroup).each do |group_order|
|
||||
if group_order.ordergroup
|
||||
price = group_order.price * -1 # decrease! account balance
|
||||
price = group_order.total * -1 # decrease! account balance
|
||||
group_order.ordergroup.add_financial_transaction!(price, note, user, transaction_type, nil, group_order)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue