Customize Post StrMenu or Dialog option at the time of Sales Posting in D365 BC:
(1) In this blog, we will make an extension to change the menu or dialog option at the time of Sales Order Posting or Sales Return Order Posting.
(2) First, we will open Sales Order Document and Press Post Button (Shortcut Key F9) as shown.
(3) In the above image, the standard system shows the menu in this sequence. “Ship, Invoice & Ship and Invoice”. If you want to change option sequence, name and visibility, then follow the below steps.
Change Sequence of Options: |
- Create a new extension and call the “OnBeforeConfirmSalesPost” event, as shown.
- After that create a new function for changing the sequence of options, as shown.
- After doing the above steps, publish the extension and see the result, as shown.
Changing the Name of Options: |
- Create a new extension and call the “OnBeforeConfirmSalesPost” event, as shown.
- After that create a new function for changing the name of options, as shown.
- After doing the above steps, publish the extension and see the result, as shown.
Hide Options: |
- For this create a new extension and call the “OnBeforeConfirmSalesPost” event, as shown.
- After that create a new function for hiding options, as shown.
- After doing the above steps, publish the extension and see the result, as shown.
(4) For Sales Return, follow the same steps and change the “ReceiveInvoiceQst” caption.