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(
42
42
}
43
43
44
44
/**
45
+ * Attach addresses to invoices
46
+ *
45
47
* @param \Magento\Sales\Model\ResourceModel\Order\Handler\Address $subject
46
48
* @param \Magento\Sales\Model\ResourceModel\Order\Handler\Address $result
47
49
* @param \Magento\Sales\Model\Order $order
@@ -78,10 +80,8 @@ public function afterProcess(
78
80
$ this ->attribute ->saveAttribute ($ invoice , $ invoiceAttributesForSave );
79
81
}
80
82
}
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 ());
85
85
}
86
86
}
87
87
}
You can’t perform that action at this time.
0 commit comments