From 90712647b1ba374b4f26cd9c23c55ef32fac9a0f Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sun, 7 Mar 2021 15:25:23 +0000 Subject: [PATCH] Update totals when processing a return --- app/models/spree/return_authorization.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/spree/return_authorization.rb b/app/models/spree/return_authorization.rb index 8b762a19c4..fc5acb3f02 100644 --- a/app/models/spree/return_authorization.rb +++ b/app/models/spree/return_authorization.rb @@ -95,6 +95,7 @@ module Spree credit.save order.return if inventory_units.all?(&:returned?) + order.update! end def allow_receive?