Customizing The iDempiere Accounting Engine
Customizing The iDempiere Accounting Engine
The purpose of this page is to help you understand the tools to enhance iDempiere's accounting engine.
You have two options:
- Enhancing the functionality by using Doc.fireDocValidate() and/or Doc.fireFactsValidate() events.
- Creating your own posting logic using IDocFactory (Advanced option)
Option 1 gives you a Model Validator plugin architecture to enhance the postings that are created by iDempiere's accounting engine. Here are the details:
- Here is the iDempiere code that fires the events
- Doc.fireDocValidate() and Doc.fireFactsValidate()
- You will most likely use the fireFactsValidate() event because it has access to both the original document and the fact_acct records
- This plugin points uses iDempiere's model validator architecture.
Option 2 gives you a hook either (a) replace existing posting logic or (b) create a new posting document from scratch.