christoph-schaeffer / dhl-business-shipping

An unofficial library for the DHL business shipping soap API (Version 3.3) and the dhl shipment tracking rest API written in PHP.
MIT License
29 stars 8 forks source link

Set Currency for Export Documents #25

Closed bjoernbieniakiewicz closed 1 year ago

bjoernbieniakiewicz commented 2 years ago

Hi Christoph,

is there any option to set the currency for my export documents? At the moment it always uses "EUR" and there will be a problem with the customs service for exports to Switzerland if we have an invoice in CHF and the export documents in EUR.

Thanks, Björn

christoph-schaeffer commented 2 years ago

Hello Björn,

thanks for using my library :-)

You can set the customs currency in the ExportDocument object. The name of the property is "customsCurrency"

https://github.com/christoph-schaeffer/dhl-business-shipping/blob/master/src/Resource/ShipmentOrder/Shipment/ExportDocument.php

This is how it should look in your code: $shipmentOrder->Shipment->ExportDocument->customsCurrency = 'CHF';

I hope i could help you. Please let me know if you have any further questions.

christoph-schaeffer commented 1 year ago

Closing, because it has been resolved