web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

@MS Bug found: Shipment request created for a negative packing slip order line (return order)

(0) ShareShare
ReportReport
Posted on by 7,437

Hi,

We integrated TNT Parcelware based on the White Paper of the shipment interface. Now barcodes for shipments are automatically printed and that saves a lot of time. However, if a packing slip of a return order is posted or a negative quantity is posted to credit an item already posted to the packing slip...also a shipment request is sent. This should not the case since no shipment takes actually place.

I have investigated the code and this problem can be avoided by setting up a delivery mode = 'none' with misc. on the sales order header. However, the sales header will also influence all existing sales order lines: _custPackingSlipJour.DlvMode. To be frank, I would expect that no request should be created if the sum of quantity of the sales lines is 0 or negative. In that case no goods will be shipped through a carrier.

Is this a good evaluation or did I not understand what SHIPCARRIERSHIPPINGREQUEST means? I think next code has a bug.

public static void createShippingRequest(
    CustPackingSlipJour _custPackingSlipJour,
    SalesTable          _salesTable,
    SalesLine           _salesLine,
    WMSShipmentId       _shipmentId,
    AmountCur           _totalAmount)
{
    ShipCarrierShippingRequest  shippingRequest;
    ;

    //if delviery type is pickup or misc, no shipping request needed
    if (!DlvMode::shipCarrierService(_custPackingSlipJour.DlvMode))
    {
        return;
    }

I would suggest next code is more in line with the business process to be supported.

public static void createShippingRequest(
    CustPackingSlipJour _custPackingSlipJour,
    SalesTable          _salesTable,
    SalesLine           _salesLine,
    WMSShipmentId       _shipmentId,
    AmountCur           _totalAmount)
{
    ShipCarrierShippingRequest  shippingRequest;
    ;

    //if delviery type is pickup or misc, no shipping request needed
    if (!DlvMode::shipCarrierService(_custPackingSlipJour.DlvMode))
    {
        return;
    }

    if(_custPackingSlipJour.Qty <=0)
    {
        return;
    }

    if (!_custPackingSlipJour.ShipCarrierId)
    {
        return;
    }

Any feedback is welcomed.

J.

*This post is locked for comments

I have the same question (0)
  • BegoSmo Profile Picture
    25 on at

    Hi,

    to connect TNT-parcelware with AX is for us very interesting for our subsidiary in BEGO France.

    If there is any Docu "How to" it would be great or if we can get in contact: smolawa (at) bego.com

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
GL-01081504-0 Profile Picture

GL-01081504-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans