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)
80
80
$ ratesIdQuoteItemId = [];
81
81
foreach ($ taxesForItems as $ taxesArray ) {
82
82
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 ' ];
85
87
if (is_array ($ taxRates )) {
86
88
if (count ($ taxRates ) == 1 ) {
87
89
$ ratesIdQuoteItemId [$ rates ['id ' ]][] = [
You can’t perform that action at this time.
0 commit comments