File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/code/Magento/Fedex/Model Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -636,9 +636,11 @@ protected function _getRateAmountOriginBased($rate) : null|float
636
636
foreach ($ rate ['ratedShipmentDetails ' ] as $ ratedShipmentDetail ) {
637
637
$ netAmount = (string )$ ratedShipmentDetail ['totalNetCharge ' ];
638
638
$ currencyCode = (string )$ ratedShipmentDetail ['shipmentRateDetail ' ]['currency ' ];
639
- $ rateType = (string )reset ($ ratedShipmentDetail ['ratedPackages ' ])
639
+ if (!empty ($ ratedShipmentDetail ['ratedPackages ' ])){
640
+ $ rateType = (string )reset ($ ratedShipmentDetail ['ratedPackages ' ])
640
641
['packageRateDetail ' ]['rateType ' ];
641
- $ rateTypeAmounts [$ rateType ] = $ netAmount ;
642
+ $ rateTypeAmounts [$ rateType ] = $ netAmount ;
643
+ }
642
644
}
643
645
644
646
foreach ($ this ->_ratesOrder as $ rateType ) {
You can’t perform that action at this time.
0 commit comments