public void registerTransaction()
{
InventTrans inventTrans;
InventDim inventDim;
InventTransWMS_Register inventTransWMS_register;
TmpInventTransWMS tmpInventTransWMS;
inventTrans = InventTrans::findTransId(salesLine.InventTransId);
if(inventTrans && inventTrans.StatusReceipt != StatusReceipt::Registered)
{
inventDim = inventTrans.inventDim();
tmpInventTransWMS.clear();
tmpInventTransWMS.initFromInventTrans(inventTrans);
tmpInventTransWMS.InventQty = inventTrans.Qty;
tmpInventTransWMS.InventDimId = inventDim.inventDimId;
tmpInventTransWMS.insert();
inventTransWMS_register = inventTransWMS_register::newStandard(tmpInventTransWMS);
inventTransWMS_Register.createFromInventTrans(inventTrans, inventDim);
inventTransWMS_register.writeTmpInventTransWMS(tmpInventTransWMS,
inventTrans, inventDim);
inventTransWMS_register.updateInvent(inventTrans);
}
}
Thursday, August 30, 2018
Register a sales order line or any other inventory transaction
Subscribe to:
Post Comments (Atom)
-
In d365 for finance and operation a new static method was added to the global class – Global::runAsync() Let’s create some asynchron...
-
NOTE: Whenever I write a Google query to find information about the new AX system, I mention the bad word of those who create the name for ...
-
In the previous article, I created two services and checked their work. Let's upgrade the work of our first service in such a way th...
No comments:
Post a Comment