Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Unanswered

Changes for Production Order Status

Posted on by 215

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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans