Hi All,
I have some questions in Production- Reported as finished.
I have created a production order manually and updated the status as "started". There are two ways to update the status as "Reported As finished". one is from the same form "Update" -> "report as finished" and second is by creating the "Report as finished" Journal.
1. My question is what is the different in above both as both of them increase the inventory quantity ?
2. I also tried to update the status by X++ code as well -
static void MD_ReportAsFinished(Args _args)
{
ProdTable prodTable;
ProdMultiReportFinished ProdMultiReportFinished;
;
//find ProdTable, not nessary in your case
prodTable = ProdTable::find("WO-00049929");
//init ProdStartup
ProdMultiReportFinished = ProdMultiReportFinished::construct(new args());
//init default parameter
RunBaseMultiParm::initParm(ProdMultiReportFinished);
//parm ProdTable, you can do this muliple times in case you want to update
//more than one production at a time
ProdMultiReportFinished.insert(prodTable, ProdMultiReportFinished.defaultParmBuffer());
//Do update
ProdMultiReportFinished.run();
info("Report As Finished");
}
I got the below error message -"
Total good quantity reported as finished for the production will be 1.00.
Feedback for the last operation is 2.00 in total".
Can anyone please let me know which setting I have to do in setup/ code level ?