Purchase Order - invoice posting- Allocate Charges in AX 2012 R3

Hello Pioneer,

I’ve created one PO in AX 2012 R3 which has 1 item with Allocated Charges by using Change Code setup.

I have defined the Debit Credit account on Change code setup which i used on the Item allocated charge.

The question here is, While posting the Invoice it’s created the journals Change codes Debit credit line with same account number in subledger journal entries.

I want to know the class which is creating the journal lines.

I’ve debugged for long hour but no luck.

I would appreciate if any one helped me to catch the exact class and method which is populating the PO Invoice Journals.

Many thanks.

Try this. Remove G/L account from setup of charges. An error message will be displayed. Debug from the error message.