Hi Ludwig,
During PO creation, I have added 2 fields like Misc PO check box and Charges code.
The charges code is coming from master and they mapped GL account with charges code.
If user select the Misc PO to yes and mention Charges code during new PO creation. Then it considered as a Misc PO.
Now doing Product receipt and Invoiced , if they found PPV posting type then it should not consider and instead of this it should take the GL account from Charges code because this is Misc PO.
That's why I need to put condition.
If the PO is Misc PO then pick the GL account from charges code if PPV posting type is there then only
Else
It should work like standard ( normal PO ) - No changes required.
Kindly suggest me where I can put the condition for product receipt and invoiced? So, that I can hit charges code GL account . ( for Misc PO only)
@ As Hussein suggested, shall I use this class for our requirement?
Please give me more shed on this