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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Hiding the options from document

(6) ShareShare
ReportReport
Posted on by 172
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.
 
I have the same question (0)
  • Verified answer
    Gavin Profile Picture
    2,508 on at
    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
     
  • Suggested answer
    Jainam M. Kothari Profile Picture
    15,639 Super User 2025 Season 2 on at
    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
    Khushbu Rajvi. Profile Picture
    20,895 Super User 2025 Season 2 on at
  • Gerardo Rentería García Profile Picture
    25,388 Most Valuable Professional on at

    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

  • Suggested answer
    One And Only Naveen Profile Picture
    458 on at
    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;

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,132

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 675 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 665 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans