File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/code/Magento/Sales/Model/Order/Invoice/Plugin Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ public function __construct(
4242 }
4343
4444 /**
45+ * Attach addresses to invoices
46+ *
4547 * @param \Magento\Sales\Model\ResourceModel\Order\Handler\Address $subject
4648 * @param \Magento\Sales\Model\ResourceModel\Order\Handler\Address $result
4749 * @param \Magento\Sales\Model\Order $order
@@ -78,10 +80,8 @@ public function afterProcess(
7880 $ this ->attribute ->saveAttribute ($ invoice , $ invoiceAttributesForSave );
7981 }
8082 }
81- if ($ orderInvoiceHasChanges ) {
82- if (!$ this ->globalConfig ->getValue ('dev/grid/async_indexing ' )) {
83- $ this ->gridPool ->refreshByOrderId ($ order ->getId ());
84- }
83+ if ($ orderInvoiceHasChanges && !$ this ->globalConfig ->getValue ('dev/grid/async_indexing ' )) {
84+ $ this ->gridPool ->refreshByOrderId ($ order ->getId ());
8585 }
8686 }
8787 }
You can’t perform that action at this time.
0 commit comments