Hi everyone,
I have customize 2 additional fields which are Date from sales order and another field is creation date.This 2 date will captured based on work date.
The field 'date from sales order' is: create new sales order -> firm planned prod.order, meanwhile the fields for creation date is: create new sale order to released prod.order. Now, this 2 field I able to captured the work date individually(meant here: from sales order to firm planned,or sales order to released). Below is the code that i wrote to captured the work date.
IF ProdOrder.Status = ProdOrder.Status::Firm Planned THEN
ProdOrder."Date from sales order" := WORKDATE;
IF ProdOrder.Status = ProdOrder.Status::Released THEN
ProdOrder."creation date" := WORKDATE;
But, when I want to make change status , for example: from sales order -> firm planned prod.order ->change status -> released prod.order directly, the 2 fields not able to captured the work date automatically. And this 2 field will be empty.
So, May I know which codeunit/page I have to make edit? and If want make edit, the code will be same as above that i mentioned?
Thanks.