Describe the bug
I am not sure, but I believe that the calculation of the net and gross weight is not correct. It seems that the gross weight of the packages does not include the weight of the packaging. This could lead to incorrect figures being transmitted to customs and the carrier returning incorrect rates.
In the example below, there are 3 items, each weighing 1.55 KG, in a parcel that weighs 0.6 KG.
<p:DCTRequest xmlns:p="http://www.dhl.com" xmlns:p1="http://www.dhl.com/datatypes"
xmlns:p2="http://www.dhl.com/DCTRequestdatatypes"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.dhl.com DCT-req.xsd" schemaVersion="3.0">
<GetQuote>
<Request>
<ServiceHeader>
<MessageTime>2023-12-19T14:11:21</MessageTime>
<MessageReference>1234567890123456789012345678901</MessageReference>
<SiteID>sideid</SiteID>
<Password>password</Password>
</ServiceHeader>
<MetaData>
<SoftwareName>3PV</SoftwareName>
<SoftwareVersion>1.0</SoftwareVersion>
</MetaData>
</Request>
<From>
<CountryCode>CZ</CountryCode>
<Postalcode>12345</Postalcode>
<City>city</City>
</From>
<BkgDetails>
<PaymentCountryCode>CZ</PaymentCountryCode>
<Date>2023-12-19</Date>
<ReadyTime>PT14H11M</ReadyTime>
<DimensionUnit>CM</DimensionUnit>
<WeightUnit>KG</WeightUnit>
<NumberOfPieces>1</NumberOfPieces>
<ShipmentWeight>4.64</ShipmentWeight>
<Pieces>
<Piece>
<PieceID>1</PieceID>
<Height>5</Height>
<Depth>30</Depth>
<Width>22</Width>
<Weight>4.64</Weight>
</Piece>
</Pieces>
<PaymentAccountNumber>1234567</PaymentAccountNumber>
<IsDutiable>Y</IsDutiable>
<NetworkTypeCode>AL</NetworkTypeCode>
</BkgDetails>
<To>
<CountryCode>TR</CountryCode>
<Postalcode>34130</Postalcode>
<City>Istanbul</City>
</To>
<Dutiable>
<DeclaredCurrency>EUR</DeclaredCurrency>
<DeclaredValue>10048.770000000000437</DeclaredValue>
</Dutiable>
</GetQuote>
</p:DCTRequest>
<req:ShipmentRequest
xsi:schemaLocation="http://www.dhl.com ship-val-global-req.xsd" xmlns:req="http://www.dhl.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="10.0">
<Request>
<ServiceHeader>
<MessageTime>2023-12-19T14:11:22</MessageTime>
<MessageReference>1234567890123456789012345678901</MessageReference>
<SiteID>sideid</SiteID>
<Password>password</Password>
</ServiceHeader>
<MetaData>
<SoftwareName>3PV</SoftwareName>
<SoftwareVersion>10.0</SoftwareVersion>
</MetaData>
</Request>
<RegionCode>EU</RegionCode>
<LanguageCode>en</LanguageCode>
<Billing>
<ShipperAccountNumber>123456</ShipperAccountNumber>
<ShippingPaymentType>S</ShippingPaymentType>
</Billing>
<Consignee>
<CompanyName>N/A</CompanyName>
<AddressLine1>36 Hayriye Tüccari Cd</AddressLine1>
<City>Istanbul</City>
<PostalCode>34130</PostalCode>
<CountryCode>TR</CountryCode>
<CountryName>Turkey</CountryName>
<Contact>
<PersonName>person</PersonName>
<PhoneNumber>0000</PhoneNumber>
<Email>[email protected]</Email>
</Contact>
<StreetName>Hayriye Tüccari Cd</StreetName>
<StreetNumber>36</StreetNumber>
</Consignee>
<Commodity>
<CommodityCode>commodity_code</CommodityCode>
<CommodityName>commodity_name</CommodityName>
</Commodity>
<Dutiable>
<DeclaredValue>10048.77</DeclaredValue>
<DeclaredCurrency>EUR</DeclaredCurrency>
<TermsOfTrade>DDP</TermsOfTrade>
</Dutiable>
<UseDHLInvoice>Y</UseDHLInvoice>
<ExportDeclaration>
<ExportReason>merchandise</ExportReason>
<ExportReasonCode>C</ExportReasonCode>
<InvoiceNumber>sr_D4AwE657kM86NiQgYzpdbqRJ</InvoiceNumber>
<InvoiceDate>2023-12-19</InvoiceDate>
<ExportLineItem>
<LineNumber>1</LineNumber>
<Quantity>3</Quantity>
<QuantityUnit>PCS</QuantityUnit>
<Description>commodity_name</Description>
<Value>3349.59</Value>
<CommodityCode>commodity_code</CommodityCode>
<Weight>
<Weight>1.55</Weight>
<WeightUnit>K</WeightUnit>
</Weight>
<GrossWeight>
<Weight>1.55</Weight>
<WeightUnit>K</WeightUnit>
</GrossWeight>
<ManufactureCountryCode>CZ</ManufactureCountryCode>
<ManufactureCountryName>Czech Republic</ManufactureCountryName>
<ImportCommodityCode>1234567</ImportCommodityCode>
</ExportLineItem>
<PlaceOfIncoterm>N/A</PlaceOfIncoterm>
<ShipmentPurpose>COMMERCIAL</ShipmentPurpose>
</ExportDeclaration>
<ShipmentDetails>
<Pieces>
<Piece>
<PieceID>1</PieceID>
<PackageType>JJ</PackageType>
<Weight>4.64</Weight>
<Width>22</Width>
<Height>5</Height>
<Depth>30</Depth>
<PieceReference>
<ReferenceID>pcl_63009c4cecaa47cb8e30839e83</ReferenceID>
</PieceReference>
</Piece>
</Pieces>
<WeightUnit>K</WeightUnit>
<GlobalProductCode>P</GlobalProductCode>
<LocalProductCode>P</LocalProductCode>
<Date>2023-12-19</Date>
<Contents>N/A</Contents>
<DimensionUnit>C</DimensionUnit>
<PackageType>JJ</PackageType>
<IsDutiable>Y</IsDutiable>
<CurrencyCode>EUR</CurrencyCode>
</ShipmentDetails>
<Shipper>
<ShipperID>1234456778</ShipperID>
<CompanyName>N/A</CompanyName>
<RegisteredAccount>12345678</RegisteredAccount>
<AddressLine1>AddressLine1</AddressLine1>
<City>CITY</City>
<PostalCode>12345</PostalCode>
<CountryCode>CZ</CountryCode>
<CountryName>Czech Republic</CountryName>
<Contact>
<PersonName>PERSON_NAME</PersonName>
<PhoneNumber>0000</PhoneNumber>
</Contact>
<StreetName>STREET_NAME</StreetName>
<StreetNumber>NUMBER</StreetNumber>
</Shipper>
<Notification>
<EmailAddress>[email protected]</EmailAddress>
</Notification>
<LabelImageFormat>PDF</LabelImageFormat>
<Label>
<LabelTemplate>6X4_PDF</LabelTemplate>
</Label>
</req:ShipmentRequest>
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too