Invoice Posting - code location

Hello All,

I need to accept two more data information from user in purchase invoice so I have added two more fields in Purchase Line table.

Now when invoice is posted then I need to copy those fields data from purchase line to Item ledger Entry table.

Can anybody tell me where I can find the code or codeunit which insert data into Item ledger Entry table. So that I will copy data from purchase line to ledger entry table.

Regards.

when user click the button posting with the option receive , then system will copy purchase lines to Item Journal from there it will post to Item ledger entry.

what ever new fields your adding to Purchase line , the same fields should add to Item Journal Table and Item ledger entry table.

For this the code unit is Item Jnl.-Post Line - 22.