[Erp5-dev] trial balance
Jérôme Perrin
jerome at nexedi.com
Sat Jan 14 18:09:16 CET 2006
Le Samedi 14 Janvier 2006 14:52, Bartłomiej Górny a écrit :
> Jérôme Perrin wrote:
> > Le Mardi 10 Janvier 2006 16:06, Bartłomiej Górny a écrit :
> >> Or, should I rather put together a new Balance Sheet / P&L account? If
> >> so, what is currently the preferred way to get the state of a Balance
> >> Sheet account?
> >
> > Definitly, this have to be implemented using the inventory API
> > ( getInventory ), which is accesible from portal_simulation and
> > documented as docstrings in SimulationTool.py, or you can use localized
> > versions of erp5_accounting from CVS as an example.
>
> Still having problems - I'm struggling with FiscalReport this time, and
> I can getInventory of an account by supplying the accounts uid as
> node_uid arg, but what I need is total inventory of the whole gap
> subtree - passing gap as node_category (as you do in the French one)
> returns 0, I tried several other ways but always got either zero or the
> whole inventory from all accounts.
In accounting, getInventory returns the balance of account(s), then it's
pretty normal that the result is 0 unless Debit != Credit in your accounting.
If what you want to do is to extract the debit of all accounts, pass
omit_output = 1 parameter to getInventory, (or omit_input = 1 if you want
credit)
--
Jérome
More information about the Erp5-dev
mailing list