Hi,
Ive a scenario where I've some customization on general journal entry & generaljournalaccountentry field Need to populate some custom field while creating customer invoice.
Anyone who knows the class or method which actually populate the record from custinvoicejour to generaljournal entry. Would be helpful .
Thanks
Zohan
Hi Zohan,
I wanted to follow-up on this question. Can you indicate if your question has been answered or if you need some more help from the community?
Hello Zohan,
As Andre mentioned, such a modification can be risky.
Can you let us know why you want to post a customer invoice in a GL journal that is at least what I understand from your initial notes.
Many thanks,
Ludwig
Interacting in all the subledger and voucher posting classes is a huge risk. It would be easy to break something or create performance issues. What is the purpose of the custom field? Depending on the purpose, you can also consider using a financial dimension.
Zohan,
You can look at Classes\CustVoucher\post method.
So you mean to say once I clicked the invoice post button somehow records has been inserted in general tables then flow it to invoice jour after successful posting? Any idea where it gets filled the general tables for voucher? Before invoice posting?
The CustInvoiceJour is inserted after a successful posting. So the records in GeneralJournalEntry and GeneralJournalAccountEntry tables already exist when the CustInvoiceJour record is inserted.
You can debug the SalesFormLetter class to find out the posting routine.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CA Neeraj Kumar 2,333
André Arnaud de Cal... 846 Super User 2025 Season 2
Sohaib Cheema 681 User Group Leader