Hello,
I am trying to post a single packing slip for multiple sales orders through code using wmsshipment.
If I only use this line of code:
SalesFormLetter.update(wmsShipment,systemDateGet(), SalesUpdate::DeliverNow, AccountOrder::Account);
Instead of posting packing slip for one specified shipment, it includes lines from all sales orders that are ready to to pack slip posted.
But if I do this:
Set shipmentsToPostSet = new Set(Types::String);
WMSShipment wmsShipment = WMSShipment::find('SHP0000034');
shipmentsToPostSet.add(wmsShipment.shipmentId);
salesFormLetter.parmLineIdSet(shipmentsToPostSet.pack());
SalesFormLetter.update(wmsShipment,systemDateGet(), SalesUpdate::DeliverNow, AccountOrder::Account);
It posts packing slips only for sales orders associated with the shipment but creates separate packing slips for each sales order.
I want to get it to consolidate the packing slip.
Can anybody please help with this issue if you have any information?
Thanks,
Charu Jadhav
*This post is locked for comments
hi Charuhas ,
My requirement is somehow similar to yours,
I have to post packing slip, shipment wise. Suppose in a load i have three lines with first two having same shipment and the last one with different shipment. then two packing slips should get generated.
i.e., it should consolidate based on shipment id.
Have you found any solution ?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156