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

SQL code to upate one Legal entity banner to all the legal entity in D365

 Hi, update companyimage set  companyimage.Image  = companyimageA.Image  from  ( select Image from companyimage where dataAreaid = 'USF...