Skip to content

Commit

Permalink
feat: allow receipt code to be used to BE
Browse files Browse the repository at this point in the history
  • Loading branch information
GravendeelJochem committed Dec 17, 2024
1 parent e61fc9d commit ee4734f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function calculate(): void
return;
}

if ($this->order->shippingAddress->cc !== CountryCodes::CC_NL) {
if (! in_array($this->order->shippingAddress->cc, [CountryCodes::CC_NL, CountryCodes::CC_BE])) {
$shipmentOptions->receiptCode = TriStateService::DISABLED;
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@
],
],

'disables receipt code when shipping to a non-NL country' => [
'disables receipt code when shipping to a non-NL or BE country' => [
[ShipmentOptions::RECEIPT_CODE => TriStateService::ENABLED],
[ShipmentOptions::RECEIPT_CODE => TriStateService::DISABLED],
'BE',
'FR',
],

'disables signature, only recipient, large format and return when receipt code is enabled' => [
Expand Down

0 comments on commit ee4734f

Please sign in to comment.