Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

how to trigger purchase order>POST (Receive) only

(1) ShareShare
ReportReport
Posted on by 128
Hi,
We have a requirement, to trigger Purchase order>Post (Receive). I found the Codeunit> Purch-Post >RunwithCheck do the post action.
But I am getting confused, how to define Post action only for Receive( no invoice).
 
Please advise. Appriciate your support.
 
Thanks
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 76,147 Super User 2024 Season 2 on at
    how to trigger purchase order>POST (Receive) only
    Hi, hope the following helps.
    Dynamics 365 Business Central: How to customize post options (Dialog: Ship, Invoice, Ship and Invoice)
     
    Business Central 2023 wave 1 (BC22) new features: Posting restrictions (Sales/Purch Invoice Posting Policy in User Setup)
     
     
    Thanks.
    ZHU
  • Suggested answer
    Jun Wang Profile Picture
    Jun Wang 7,447 Super User 2024 Season 2 on at
    how to trigger purchase order>POST (Receive) only
    if you make the change, who is allowed to post invoice? you could also consider limit the users permission not allow them to invoice.
  • gdrenteria Profile Picture
    gdrenteria 13,235 Most Valuable Professional on at
    how to trigger purchase order>POST (Receive) only
    Hi
    In addition to what was well commented by our colleague.
    In this code you can see what the standard does when you select receive.

    I hope it helps you a little
    BR
    RG
  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 60,062 Super User 2024 Season 2 on at
    how to trigger purchase order>POST (Receive) only
    You can update it in the record that you are passing.
     
    PurchaseHeader.Receive := true;
    PurchaseHeader.Invoice := false;
     
    You can pass it to the function that you are calling.

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 Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,569 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans