Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Hiding the options from document

(4) ShareShare
ReportReport
Posted on by 42
Hi Team,
 
As in sales order there is option of post when we click on post there are 3 options available (Ship, Invoice, Ship & Invoice) I want to hide other 2 options and want to keep only ship for sales order. Is there any way in standard functionality to hide this or I have to write the code for this ?. Like don't want to make it customize so looking of standard Functionality to hide. Also I'm giving you the reference what exactly i want to hide.
 
  • Suggested answer
    One And Only Naveen Profile Picture
    368 on at
    Hiding the options from document
    Try This, It'll Work.
     
     [EventSubscriber(ObjectType::Codeunit, Codeunit::"Sales-Post (Yes/No)", 'OnBeforeConfirmPost', '', true, true)]
        local procedure OnBeforeSelectPost(var DefaultOption: Integer; var IsHandled: Boolean; var SalesHeader: Record "Sales Header"; var Result: Boolean)
        var
            ReceiveInvoiceQst: Label '&Ship';
            Selection: Integer;
        begin
            DefaultOption:=1;
            IsHandled:=true;
            Selection:=StrMenu(ReceiveInvoiceQst, DefaultOption);
            if Selection = 0 then begin
                Result:=false;
                exit;
            end;
            SalesHeader.Ship:=Selection in[1];
            SalesHeader.Invoice:=false;
            Result:=true;
        end;
  • Gerardo Rentería García Profile Picture
    19,142 Most Valuable Professional on at
    Hiding the options from document

    Hi, good day
    I hope this can help you, and give you some hints.

    https://community.dynamics.com/forums/thread/details/?threadid=859757a2-447e-ee11-8179-000d3a55bcf1

    https://yzhums.com/7349/

    Best Regards
    Gerardo

  • Verified answer
    Khushbu Rajvi. Profile Picture
    16,382 Super User 2025 Season 1 on at
  • Suggested answer
    Jainam M. Kothari Profile Picture
    7,938 on at
    Hiding the options from document
    Hello,
     
    Yes as per @Gavin Mentioned, you can prohibit the Invoicing by Prohibition on User Setup.
     
     
    Then there will be No Option for "Invoice" and "Ship and Invoice".
  • Verified answer
    Gavin Profile Picture
    2,480 on at
    Hiding the options from document
    Hi,
     
    In the "User Setup" page you can control this per user via the option below. If you select "Prohibited" the user will only be able to Ship the Sales Order.
     
    Hope this helps
     
    Thanks
    Gavin
     

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,063

#2
YUN ZHU Profile Picture

YUN ZHU 1,002 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 810

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans