Skip to content

Commit

Permalink
fix: resolve error for small package BE creation (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
GravendeelJochem authored Aug 13, 2024
1 parent 9e07ef0 commit 05131e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/ConsignmentEncode.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public static function encodeExtraOptions(array $consignmentEncoded, AbstractCon
$consignmentEncoded['options']['insurance']['amount'] = self::MAX_INSURANCE_PACKETS_ROW;
}

if (AbstractConsignment::CC_NL === $consignment->getCountry()) {
if (in_array($consignment->getCountry(), [AbstractConsignment::CC_NL, AbstractConsignment::CC_BE])) {
$consignmentEncoded['options']['tracked'] = 0;
} else {
$consignmentEncoded['options']['tracked'] = 1;
Expand Down

0 comments on commit 05131e4

Please sign in to comment.