Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Purchase order approval

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

I have set up Purchase order approval and workflow on NAV17.

Is there a way to prevent purchase orders being printed if the order is not approved, if not what is the point of approvals!

*This post is locked for comments

  • Suggested answer
    Prtham Profile Picture
    Prtham 171 on at
    RE: Purchase order approval

    There is no standard functionality in NAV.

    As you said, the answer is possible but, You need to customize this. The solution suggested by Rob Fontaine is suites your need. Please mark the solution after you are done or post here, if your requirement is different.

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: Purchase order approval

    You need to modify the code on print action button for preventing the printing of report unless it is approved.

  • Tina Menezes Profile Picture
    Tina Menezes 2,576 on at
    RE: Purchase order approval

    Hi,

    In the C/AL code of  action 'Print' and 'Post+Print' present in purchase order page , you have to add the following as the status or the PO chanhes to Released once it has been approved:

    OnAction()

    IF PurchaseHeader.Status=PurchaseHeader.Status::Released THEN

    BEGIN

    //Original code already present in the action

    END

    ELSE

    ERROR('Purchase order has not been approved!');

  • Rob F. Profile Picture
    Rob F. 483 on at
    RE: Purchase order approval

    Hi Alan,

    One option to try, which we've implemented, is to add the following code in the OnAction() trigger of the 'Print' and 'Post+Print' page actions on the Purchase Order page.

    TESTFIELD(Status, Status::Released)

    This would prevent the action from being allowed unless the status of the PO is 'Released', which is normally only set once the PO has been approved or if a user has access to the 'Release' action and clicks on it.  In our case we've removed the 'Release' button from the custom Role Centres so the users do not see it.

    Regards,

    Rob

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Purchase order approval

    I don't think u can prevent printing, the main concept for approvals in your case to prevent "posting only" under a specific condition so no account will get hit until being approved.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans