There's an unexpected moment when an Approved Purchase Requisition is not collected by Release approved purchase requisition form. ... something silly rite?
but, yes ... iv got that problem.
This case is happen when the Accounting status field on Sourcedocumentline table is set to 'Fully distributed'. i dont know why this accounting status field is set to 'Fully distributed', i mean the trigger that's makes the status become 'Fully distributed'.
So,... in this case u can fix this problem by set the Accounting status to become 'Completed'.
U can use the script from the Job.
Use the PurchTable, Purchline and SourceDocumentline.
Select PRtable where Prtable.PurchReqId == "XXXX";
while select PRline where PRline.PurchReqTable == PRtable.RecId
{
Select forUpdate documentline where documentline.RecId == PRline.SourceDocumentLine;
{
info(strFmt("PRlinenum : %1, Documentstatus : %2",PRline.LineNum,documentline.AccountingStatus));
ttsBegin;
documentline.AccountingStatus = SourceDocumentLineAccountingStatus::Completed;
documentline.update();
ttsCommit;
}
}
All Archives in this blog may be used for the Junior,Dummies or someone who just started for career at Dynamics Ax ... A Place Where U can Start ur Code - right here ...
Langganan:
Postingan (Atom)
Cloud hosted environment di D365
Biasanya kita menginginkan sebuah environment yang sama dengan LIVE/PROD untuk mengtest sebuah proses. Maka kita bisa menggunakan fitur Clou...
-
When we work with entries data that contain sequence number sometime we need an improvement to create in another way, a Generate perhaps. ...
-
"Error while setting server report parameters. Error Message: The item ´/DynamicsAx/PurchPurchaseOrderreport.Report4´ cannot be found ...
-
Public Common lookupReference() { Common ret; ret = HcmWorker::PSM_LookupReffWorker_ByDept(this,strFmt("%1...