RE: which method and class is best approach to add code during PO invoice in AX 2012?
Thanks Ergun,
The requirement is
I have added a check box "Misc PO" and Charges code in PurchCreateOrder form.
If user mark Yes in Misc PO then the PO should consider as Misc PO not normal PO.
For example - In the charges code master they setup GL account suppose 11405.
If the PO is MISC PO then the PO invoice should hit the GL account 11405 based on charges code setup.
And for the NORMAL PO, It should work like STANDARD PROCESS.
Basically I need to put condition during PO INVOICE , it SHOULD CHECK
if the PO is MISC. PO then it should hit GL account which is mapped with CHARGES CODE and if the PO is NORMAL PO then it should work like STND. PROCESS.
Kindly let me know the correct place to write code. I mean the which class and method ?
Please give me more shed on this