Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-brough committed Sep 23, 2016
1 parent ba17bba commit 8d99136
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/app/models/spree/order_updater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ def update_cancellations

def update_item_totals
[*line_items, *shipments].each do |item|
# The cancellation_total isn't persisted anywhere but is included in
# the adjustment_total
item_cancellation_total = item.adjustments.select(&:cancellation?).sum(&:amount)

item.adjustment_total = item.promo_total +
Expand Down

0 comments on commit 8d99136

Please sign in to comment.