Skip to content

Commit

Permalink
Merge pull request #3134 from nebulab/twist900/refactor-order-refund-…
Browse files Browse the repository at this point in the history
…total

Refactor order #refund_total
  • Loading branch information
kennyadsl authored Mar 8, 2019
2 parents ebba3e0 + 3134313 commit ec84e0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/app/models/spree/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def outstanding_balance?
end

def refund_total
payments.flat_map(&:refunds).sum(&:amount)
refunds.sum(&:amount)
end

def name
Expand Down

0 comments on commit ec84e0e

Please sign in to comment.