Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

Update sales status of sales line in ax 2009 through code

$
0
0

I have to change the status of line item of sales order. 
I need to know which methods are used to update it? I am doing it through a job. 

Below is my code. I know it is not correct. I need help regarding this.

static void Job55(Args _args)
{

SalesLine _salesLine;
while select forupdate _salesLine where _salesLine.SalesId =="123" && _salesLine.ItemId == "20"
{
if(_salesLine)
{
ttsbegin;
_salesLine.SalesStatus = 2;
_salesLine.update();
ttscommit;
}
}
}



Viewing all articles
Browse latest Browse all 175888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>