How can I set up to not allow to post Invoice directly from Purchase Order ?
Or if there is no function to set up, which action should I modify in AL code ?
Thank you.
yes, it is standard info.
Thanks Yadav,
I am sorry for late response.
I used your 1st code and It showed as expected.
But there is a small confusing that when I clicked Cancel it showed the error:
"Please enter "Yes" in Receive and/or Invoice and/or Ship"
Do you know whether this error message impact anything or just only "info" ?
Thanks
You can do it multiple ways
1st code will just show the Receive option
2nd code will throw error if user selects Invoice or "Receive and Invoice"
There are many thing to achieve your requirement, some are below.
1. No to enter Qty. to Invoice field value
2. Put the error if someone does for point no. 1
3. Put an error on Point No. 1
4. Disable the Invoice menu option by going to Codeunit 91
5. Put your logic on OnBeforePosting, in codeunit 90
Thanks.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156