Alfasith AX

Alfasith AX
اللَّهُمَّ انْفَعْنِي بِمَا عَلَّمْتَنِي، وَعَلِّمْنِي مَا يَنْفَعُنِي، وَزِدْنِي عِلْمًا

Sunday, August 9, 2015

Update sales order line amount through X++

Hi,

Static void AlfasithUpdateSalesId(Args _args)
{
SalesLine  salesLine;
;
ttsbegin;
while select forupdate salesline where salesline.salesid == 'SO-00215'
{
salesline.calcLineAmount();
salesline.update();
}
info(strfmt("1% Sales id - sales amount was updated",salesline.salesid ));
}

Regards,

No comments:

Post a Comment

How find size of recordsortedlist in D365/AX 2012

Hi, This is the continuity of the previous article where we are now getting the size of recordsortedlist . if(recordsortedlist.len() >1) ...