Skip to content

Commit 24adda2

Browse files
Also enable for return shipments to belgium
1 parent e33d36f commit 24adda2

File tree

2 files changed

+2
-2
lines changed
  • src
    • Resources/app/administration/src/module/postnl/component/shipment-modal/postnl-create-return-modal
    • Service/PostNL/Builder

2 files changed

+2
-2
lines changed

src/Resources/app/administration/src/module/postnl/component/shipment-modal/postnl-create-return-modal/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Shopware.Component.extend('postnl-create-return-modal', 'postnl-shipment-modal-b
109109
description: this.shipmentAndReturnAvailable.length > 0
110110
? this.$t('postnl.order.modal.createReturn.type.shipmentAndReturn.description')
111111
: this.$t('postnl.order.modal.createReturn.type.notAvailable'),
112-
requiredZones: ['NL'],
112+
requiredZones: ['NL', 'BE'],
113113
returnZones: ['NL', 'BE'],
114114
},
115115
{

src/Service/PostNL/Builder/ShipmentBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function buildShipment(OrderEntity $order, Context $context): Shipment
170170
!empty($returnCustomerCode) &&
171171
!$context->hasState(OrderReturnAttributeStruct::S_SMART_RETURN) &&
172172
$returnOptions->getType() === ReturnOptionsStruct::T_SHIPMENT_AND_RETURN &&
173-
in_array($product->getDestinationZone(), [Zone::NL]) &&
173+
in_array($product->getDestinationZone(), [Zone::NL, Zone::BE]) &&
174174
in_array($returnCountryCode, [Zone::NL, Zone::BE])
175175
) {
176176
$this->orderService->updateOrderCustomFields(

0 commit comments

Comments
 (0)