Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Unanswered

Purchase Order Document Receiving - Post Options

Posted on by 128

Hello, MS Family. 

Is it possible from this prompt to appear with Receive selected instead of Receive and Invoice?

After clicking on the action to Post, these options appear and I would like the selection to default to Receive. Hoping there is a way without customization. 

pastedimage1679503233645v1.png

  • Gabe Longoria Profile Picture
    Gabe Longoria 128 on at
    RE: Purchase Order Document Receiving - Post Options

    Thank you!

  • Hein Kruger Profile Picture
    Hein Kruger 501 on at
    RE: Purchase Order Document Receiving - Post Options

    Hi, 
    You can change the default with an event subscriber in codeunit 91 "Purch.-Post (Yes/No)"

    pastedimage1679508711158v1.png

    Add the following code to a new code unit. 

    pastedimage1679508780828v2.png

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Purch.-Post (Yes/No)", 'OnBeforeConfirmPost', '', true, true)]
        local procedure OnBeforeConfirmPost(var PurchaseHeader: Record "Purchase Header"; var HideDialog: Boolean; var IsHandled: Boolean; var DefaultOption: Integer)
        begin
            DefaultOption := 1;
        end;

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