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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

X++: managing sales order packing slip re: inventory

(0) ShareShare
ReportReport
Posted on by 596
Hello:
I would like to get some advice. I have code which partially pack slips sales order lines. So far it's working as intended. However, I am curious of how to handle the scenario in which my available physical level for an item is below the quantity I need to pack slip. Is there an out-of-the-box call before running the packing slip routine or will I have to check the inventory level for my item and inventdim before attempting to pack slip? What is the recommended approach?
Thank you.
 
salesFormLetter_PackingSlip = salesFormLetter::construct(DocumentStatus::PackingSlip);
salesFormLetter_PackingSlip.transDate(PackingSlipDate);
salesFormLetter_PackingSlip.proforma(false);
salesFormLetter_PackingSlip.specQty(salesUpdate::All);
salesFormLetter_PackingSlip.salesTable(salesTable);
salesFormLetter_PackingSlip.parmId(salesParmTable.ParmId);
salesFormLetter_PackingSlip.salesParmUpdate(salesFormLetterParmData.parmParmUpdate());
salesFormLetter_PackingSlip.run();
Categories:
I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 707 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 618 Super User 2025 Season 2

#3
CU05031448-0 Profile Picture

CU05031448-0 600

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans