Customize StrMenu or Dialog option at the time of Purchase Posting in D365 BC:
(1) In this blog, we will make an extension to change the menu or dialog option at the time of Purchase Order Posting or Purchase Return Order Posting.
(2) First, we will open Purchase 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. “Receive, Invoice & Receive and Invoice”. If you want to change option sequence, name and visibility, then follow the below steps.
Change Sequence of Options: |
- For this create a new extension and call the “OnBeforeConfirmPost” 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: |
- For this create a new extension and call the “OnBeforeConfirmPost” 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 “OnBeforeConfirmPost” 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 Purchase Return, follow the same steps and change the “ShipInvoiceQst” caption.