mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Merge pull request #5793 from luisramos0/payment_fees
Make charges update method update the first pending payment
This commit is contained in:
@@ -432,8 +432,8 @@ Spree::Order.class_eval do
|
||||
# amount here.
|
||||
def charge_shipping_and_payment_fees!
|
||||
update_totals
|
||||
return unless payments.any?
|
||||
return unless pending_payments.any?
|
||||
|
||||
payments.first.update_attribute :amount, total
|
||||
pending_payments.first.update_attribute :amount, total
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user