Anyone got a snippet of code to report a production order as finished and post a journal (single product and coproducts)?
thank you in advance
regards
*This post is locked for comments
Anyone got a snippet of code to report a production order as finished and post a journal (single product and coproducts)?
thank you in advance
regards
*This post is locked for comments
As the previous comment suggests, you'll need to utilize a number of classes depending on your scenario. If you're having trouble, step through the code while doing the process in the front end. This will give you a good idea of the code path that needs to be taken.
Report a production order as finished: Seems to be the same as in 2009, use class ProdUpdReportFinished and a ProdParmReportFinished record.
I'm not sure what you mean by single/co products and what journal you want to post, but for production journals you can use class ProdJournalCheckPost and its subclasses, e.g. ProdJournalCheckPostBOM for a picking list or ProdJournalCheckPostRouteJob to post a job journal.
André Arnaud de Cal... 291,431 Super User 2024 Season 2
Martin Dráb 230,503 Most Valuable Professional
nmaenpaa 101,156