preloader-matrix

Alfasith

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,

Leave a Reply

Your email address will not be published.