Hello, I would like to set a condition in Purchase Orders so that when the Price in the order lines = 0, the Approve button will be disabled.
How can I do that? Is it by using extension standard form commands?
Thanks
Hi Faridz,
Yes, you should be able to control the Form Command with the Extension functionality.
Session extension point → Standard Form Command → Is Enabled Hook https://docs.infor.com/ln/latest/en-us/lnesolh/default.html?helpcontent=lnstudextdg_cl/qeq1511792984622.html
Session extension point → Standard Form Command → Before Command hook https://docs.infor.com/ln/latest/en-us/lnesolh/default.html?helpcontent=lnstudextdg_cl/clx1511792985168.html
If you want to prevent a purchase order from getting approved even if when the 'Approve Purchase Orders' (tdpur4210m100) session is run directly, there is also a Public Interface/Process Extension 'PurchaseOrder.SkipApprove' that can be used to skip the approval of an order. https://customerportal.infor.com/csmcore?id=kb_article_view&sysparm_article=KB2003722
Yours, Stephan
i see.
Thank you, Now I am able to apply a condition to the Approve button using choice.again() in the before command hook.
choice.again()