[Erp5-dev] trial balance

Bartłomiej Górny bartek at redpoint.mn.pl
Sat Jan 14 14:52:36 CET 2006


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.

By the way, how to get from portal_catalog all objects that belong to a 
subtree of a certain category?

Bartek


-- 
"Software is largely a service industry operating under the persistent 
but unfounded delusion that it is a manufacturing industry."
Eric S.Raymond, "The Magic Cauldron"



More information about the Erp5-dev mailing list