File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
app/code/Magento/Tax/Model/Plugin Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \Tax \Model \Plugin ;
9
9
10
+ use Magento \Tax \Api \Data \OrderTaxDetailsAppliedTaxExtension ;
11
+
10
12
class OrderSave
11
13
{
12
14
/**
@@ -123,7 +125,9 @@ protected function saveOrderTax(\Magento\Sales\Api\Data\OrderInterface $order)
123
125
foreach ($ taxes as $ row ) {
124
126
$ id = $ row ['id ' ];
125
127
if (isset ($ row ['extension_attributes ' ])) {
126
- $ taxRates = $ row ['extension_attributes ' ]['rates ' ];
128
+ $ taxRates = $ row ['extension_attributes ' ] instanceof OrderTaxDetailsAppliedTaxExtension
129
+ ? $ row ['extension_attributes ' ]->getRates ()
130
+ : $ row ['extension_attributes ' ]['rates ' ];
127
131
if (is_array ($ taxRates )) {
128
132
foreach ($ taxRates as $ tax ) {
129
133
if ($ row ['percent ' ] == null ) {
You can’t perform that action at this time.
0 commit comments