Skip to content

Commit

Permalink
fix: disable tracked for package_small nl
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Ernst committed Mar 11, 2024
1 parent c00929c commit 0eec41e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Services/ConsignmentEncode.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ public static function encodeExtraOptions(array $consignmentEncoded, AbstractCon
}

if (AbstractConsignment::PACKAGE_TYPE_PACKAGE_SMALL === $consignment->getPackageType()) {
$consignmentEncoded['options']['tracked'] = 1;
if (AbstractConsignment::CC_NL === $consignment->getCountry()) {
$consignmentEncoded['options']['package_format'] = 0;
} else {
$consignmentEncoded['options']['package_format'] = 1;
}
}

foreach ($consignment->getMandatoryShipmentOptions() as $option) {
Expand Down

0 comments on commit 0eec41e

Please sign in to comment.