可以调用标准函数
Purchline::ModifyPurchQty(purchLine,inventDim);
InventMovement::bufferSetRemainQty(purchLine);
sample source:
PurchQty q;
q = 800;
avoidBox = true;
select forupdate _pLine where _pLine.PurchId == "02691700" && _pLine.LineNum == 5;
ttsbegin;
_pLine.PurchQty = q;
PurchLine::modifyPurchQty(_pLine, InventDim::find(_pLine.InventDimId), avoidBox);
InventMovement::bufferSetRemainQty(_pLine);
_pLine.update();
ttscommit;
http://microsoft.public.axapta.narkive.com/LT7hVitW/8648-1-can-i-simply-use-the-function-purchline-modifypurchqty-to-alter-the-purchqty
本文提供了一个具体的示例,展示了如何使用PurchLine::ModifyPurchQty函数来修改采购数量,并通过一系列步骤确保了数据的一致性和准确性。此外,还详细介绍了缓冲设置剩余数量的过程,以及如何使用SQL查询来更新采购行信息。
353

被折叠的 条评论
为什么被折叠?



