File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/code/Magento/Tax/Model/Plugin Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -80,8 +80,10 @@ protected function saveOrderTax(\Magento\Sales\Api\Data\OrderInterface $order)
8080 $ ratesIdQuoteItemId = [];
8181 foreach ($ taxesForItems as $ taxesArray ) {
8282 foreach ($ taxesArray ['applied_taxes ' ] as $ rates ) {
83- if (isset ($ rates ['extension_attributes ' ]['rates ' ])) {
84- $ taxRates = $ rates ['extension_attributes ' ]['rates ' ];
83+ if (isset ($ rates ['extension_attributes ' ])) {
84+ $ taxRates = $ rates ['extension_attributes ' ] instanceof OrderTaxDetailsAppliedTaxExtension
85+ ? $ rates ['extension_attributes ' ]->getRates ()
86+ : $ rates ['extension_attributes ' ]['rates ' ];
8587 if (is_array ($ taxRates )) {
8688 if (count ($ taxRates ) == 1 ) {
8789 $ ratesIdQuoteItemId [$ rates ['id ' ]][] = [
You can’t perform that action at this time.
0 commit comments