Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

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.

*This post is locked for comments

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans