I have to add an enum on the On-Hold having functionality of blocking both Invoice and the requisition. I have named by Enum as Invoice & Requisition and it should block a vendor account at the time of invoicing and requisition. I have been debugging the code from very long but could not found the actual area where I would have to add my code by creating an extension. I mainly debugged the post button on the invoice journal to look for the class where the invoices are blocked.
To block invoices and requisitions with your enum, focus on the classes related to the invoice journal, particularly methods that handle posting or validation. Consider creating an extension to incorporate your logic there. Debugging with logging statements can also help identify the right integration point. Good luck! Lab reports are not my strong suit, so when I needed help with one of my biology assignments, I turned to academized.com/buy-lab-report-online The lab report they provided was detailed, accurate, and followed the format required by my professor. It was delivered on time, and I was able to submit it without any stress. The service saved me hours of work, and I’ll definitely use them again in the future. Highly recommend for students who need help with lab reports!
@Andre Arnauld, I have already tried that but still couldn't find the actual place where these statuses are blocked. Can you suggest some other way ? I have even debugged the code but still it did not catches the actual place.
You can use cross reference tools and metadata search to check the options where the current enumeration is used. Then you might find the standard validation and you can check if you can extend it for the invoices. You can then also check if the same method can be used for the requisition or another method.
You asked your question in the D365 general forum a didn't even mention the product you have in mind, but I believe it's F&O, therefore I've moved this thread to the D365 Finance forum. Please let me know if you disagree.
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.