Hi All,
To cancel a sales order using X++ I tried the below code, I hope it will be helpful for you.
ttsBegin;
while select forupdate salesLine
where salesLine.SalesId == salesTable.SalesId
{
salesLine.RemainInventPhysical = 0;
salesLine.RemainSalesPhysical = 0;
salesLine.update();
}
ttscommit;
Happy Daxing,
AX Dude
To cancel a sales order using X++ I tried the below code, I hope it will be helpful for you.
ttsBegin;
while select forupdate salesLine
where salesLine.SalesId == salesTable.SalesId
{
salesLine.RemainInventPhysical = 0;
salesLine.RemainSalesPhysical = 0;
salesLine.update();
}
ttscommit;
Happy Daxing,
AX Dude
How should we reopen the cancel order?
ReplyDeleteThanks!