@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | } |
20 | 20 | |
21 | 21 | /** |
22 | - * @return transportationShipmentCharge |
|
22 | + * @return ShipmentCharge |
|
23 | 23 | */ |
24 | 24 | public function getTransportationShipmentCharge() |
25 | 25 | { |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
46 | - * @return dutiesAndTaxesShipmentCharge |
|
46 | + * @return ShipmentCharge |
|
47 | 47 | */ |
48 | 48 | public function getDutiesAndTaxesShipmentCharge() |
49 | 49 | { |
@@ -312,12 +312,16 @@ |
||
312 | 312 | |
313 | 313 | if ($shipmentChargeRec == 1) { |
314 | 314 | $rec = $shipment->getItemizedPaymentInformation()->getTransportationShipmentCharge(); |
315 | - if ($rec == null) continue; |
|
315 | + if ($rec == null) { |
|
316 | + continue; |
|
317 | + } |
|
316 | 318 | $node = $paymentNode->appendChild($xml->createElement('ShipmentCharge')); |
317 | 319 | $node->appendChild($xml->createElement('Type', \Ups\Entity\ShipmentCharge::SHIPMENT_CHARGE_TYPE_TRANSPORTATION)); |
318 | 320 | } else { |
319 | 321 | $rec = $shipment->getItemizedPaymentInformation()->getDutiesAndTaxesShipmentCharge(); |
320 | - if ($rec == null) continue; |
|
322 | + if ($rec == null) { |
|
323 | + continue; |
|
324 | + } |
|
321 | 325 | $node = $paymentNode->appendChild($xml->createElement('ShipmentCharge')); |
322 | 326 | $node->appendChild($xml->createElement('Type', \Ups\Entity\ShipmentCharge::SHIPMENT_CHARGE_TYPE_DUTIES)); |
323 | 327 | } |