File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1814,7 +1814,7 @@ protected function _formIntlShipmentRequest(\Magento\Framework\DataObject $reque
1814
1814
}
1815
1815
1816
1816
$ xml ->addChild ('GrossPounds ' , $ packagePoundsWeight );
1817
- $ xml ->addChild ('GrossOunces ' , sprintf ( ' %.2F ' , $ packageOuncesWeight) );
1817
+ $ xml ->addChild ('GrossOunces ' , $ packageOuncesWeight );
1818
1818
if ($ packageParams ->getContentType () == 'OTHER ' && $ packageParams ->getContentTypeOther () != null ) {
1819
1819
$ xml ->addChild ('ContentType ' , $ packageParams ->getContentType ());
1820
1820
$ xml ->addChild ('ContentTypeOther ' , $ packageParams ->getContentTypeOther ());
Original file line number Diff line number Diff line change @@ -296,8 +296,7 @@ public function testFormattingFloatValuesForIntlShipmentRequest()
296
296
297
297
$ request ->setRecipientAddressCountryCode ('UK ' );
298
298
$ formattedValuesRegex = '(<Value>5.00<\/Value>).* ' ;
299
- $ formattedValuesRegex .= '(<NetOunces>0.00<\/NetOunces>).* ' ;
300
- $ formattedValuesRegex .= '(<GrossOunces>0.00<\/GrossOunces>) ' ;
299
+ $ formattedValuesRegex .= '(<NetOunces>0.00<\/NetOunces>) ' ;
301
300
302
301
$ this ->httpClient ->expects ($ this ->exactly (2 ))
303
302
->method ('setParameterGet ' )
You can’t perform that action at this time.
0 commit comments