web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Printing order Approval

(0) ShareShare
ReportReport
Posted on by 90

Hi all,

We have set up the approving process in my company in order to control the purchase order for a cashflow issue.

However, even though the purchaser now need to request an approval for:

- posting the order

- Receiving the goods

- Receiving invoice

They don't need any approval to print a "not approved order". This mean that they can send to the supplier the printing order and then received the goods... The approval process is then useless.

My question is then the following: how can we make Nav authorise printing only if the order has been approved?

Thank you & have a good day,

Bastien

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Aleksandar Totovic Profile Picture
    16,765 on at

    I don't know what NAV version you use, but there is not possible by standard. You can make small customization on order document. You can add Status field before order text with option Pending Approval or Released. I think this is enough.

    You can also make customization on document printing, if Status=Pending Approval, then you print empty lines. This is no to hard, but it need some development. The best way is to ask this from your partner.

  • Bastien Profile Picture
    90 on at

    Thank you for your answer Aleksandar, I will try to figure out how to do it !

    kind regards,

    Bastien

  • Bastien Profile Picture
    90 on at

    Thank you for your answer Aleksandar, I will try to figure out how to do it !

    kind regards,

    Bastien

  • Verified answer
    Bastien Profile Picture
    90 on at

    Hi All,

    Here the solution for my problem. I am using Microsoft Dynamic Development Environment (software), once you try to design your report (PO in my case), go in the tab on top call "View" and then "C/AL Code".

    There you have a page code poping up and you write the following :

    IF (Status = Status::"Pending Approval") OR (Status = Status::Open) OR (Status = Status::"Pending Prepayment") THEN BEGIN

     ERROR('Purchase Order must be approved before printing');

    END ELSE BEGIN

    WRITE This above just after this here under:

    Purchase Header - OnAfterGetRecord()

    CurrReport.LANGUAGE := Language.GetLanguageID("Language Code");

    CompanyInfo.GET;

    Thank you for your help!

    Bastien

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans