Is it possible if we would like Sales Order status automatically change to 'Released' of 'Open' in Sales Order after user clicks on 'Make Order' button in Sales Quote Page?
Because the manager doesn't want users to change any thing after Sales Quote turns to Sales Order. if users want to change anything such as price or quantity it should only in Sales Quote.
Thank you for your help
Answers
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I already checked on codeunit86 but l have no clue where can l make a change on it. Could you guide or share me more details please?
SalesOrderHeader.Status := SalesOrderHeader.Status::Released;
SalesOrderHeader.MODIFY(TRUE);
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
>
Is "TESTFIELD(Status,Status::Open);" cause of this error?
Should I change 'TESTFIELD(Status,Status::Open)' to 'TESTFIELD(Status,Status::Released)'?
it seems code is trying to modify fields after status is set to Released.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
I wrote the code here.
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
SalesOrderHeader.Status := SalesOrderHeader.Status::Released;
SalesOrderHeader.MODIFY(TRUE);
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.
SalesOrderHeader.MODIFY(TRUE);
it works!!
thank you for your help guys!