From 8d99136c531e082307f66174f80f71e44cae1445 Mon Sep 17 00:00:00 2001 From: Jordan Brough Date: Thu, 22 Sep 2016 21:53:49 -0600 Subject: [PATCH] Add comment --- core/app/models/spree/order_updater.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/app/models/spree/order_updater.rb b/core/app/models/spree/order_updater.rb index ec4bd732e59..a864d925796 100644 --- a/core/app/models/spree/order_updater.rb +++ b/core/app/models/spree/order_updater.rb @@ -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 +