How to insert record in table "GeneralJournalAccountEntry"

Hi All,

I want to insert records in “GeneralJournalAccountEntry” table based on my process i.e. wherever i will invoice the SO, Based on the sales order line details my custom table have credit and debit accounts this account details will inserted in above mentioned table.Where i want to write code to insert records in a table.

Please help on this.

Thanks.

Hi All,
Any help would be appreciated…

HI Gopinath,

In “GeneralJournalAccountEntry” table data inserted when accounting perform by the standard at a time of posting. Will you specify why do u want to insert data manually in this table and when ?

Hi Rahul,
My requirement is based on my custom table credit and debit account details is needed in GeneralJournalAccountEntry at the time of sales order invoicing so that i will process the customer details.
Thanks.

You should not be inserting records directly in GeneralJournalAccountEntry table, rather use the ledgerVoucher* classes to create new voucher or use the same sales invoice voucher.