|
|
|
|
#1 |
|
Junior AX Developer
|
i got the solution we can close this thread.
solution: I added the following lines to Class ProdUpdReportFinished: method: updateProdReceipt X++: ProdJournalCheckPostProd prodJournalCheckPostProd;
ProdJournalCreateProd prodJournalCreate;
ProdJournalTable prodJournalTable;
;
prodJournalCreate = ProdJournalCreateProd::newReportFinished(prodParmReportFinished);
prodJournalCreate.run();
prodJournalTable = prodJournalCreate.usedProdJournalTable();
// new code -->
prodJournalTable.qtyError = prodParmReportFinished.QtyError;
prodJournalTable.QtyGood = prodParmReportFinished.QtyGood;
prodJournalTable.OprNum = prodParmReportFinished.FromOprNum;
//<-- new code
if (prodJournalTable.RecId && prodJournalTable.JournalId)
{
prodJournalCheckPostProd = ProdJournalCheckPostProd::newPostJournal(prodJournalTable.JournalId,prodParmReportFinished.JournalShowInfo);
prodJournalCheckPostProd.run();
this.sysSignBuffer(prodJournalTable,true);
prodJournalTable.doUpdate();
}
this.addUpdateRec(ProdTable::find(prodParmReportFinished.ProdId));
__________________
Kind Regards Robin |
|
|
|
|
|