Fulfillment Discrepancy for HCNAS102299

We have reviewed the issue related to the Maersk integration of Item Fulfillment. The root cause lies in how parent-child items are handled during the comparison process. In the response from Maersk, the item name is provided without the parent reference. As a result, the script fails to match the items correctly. In these cases, the Item Fulfillment is created by transforming the Sales Order into Item Fulfillment, which is why the item 'HCNAS102299' was included in the Item Fulfilment IF-304286.
 
let itemId = ifRec.getSublistText({

              sublistId: 'item',

              fieldId: 'itemname',

              line: i

            });

            let itemParts = itemId.split(':');

            // Extract the last element from the array

            itemId = itemParts[itemParts.length - 1].trim();

Leave a comment

Your email address will not be published. Required fields are marked *