[Erp5-dev] Accounting transactions list does not display empty transactions

Bartłomiej Górny bartek at redpoint.mn.pl
Tue Jan 24 20:20:06 CET 2006


Jérôme Perrin wrote:
> Le Mardi 24 Janvier 2006 16:29, Bartłomiej Górny a écrit :
>> Hello
>>
>> Problem: accounting module does not list transactions which have no
>> accounting transaction lines or only lines with zero value.
> 
> Hello
> 
> This is a known bug, but transactions with lines with zero quantity are shown, 
> only transactions _without lines_ are not shown. As long as init scripts 
> automatically adds lines inside a transaction, this is not #1 priority bug 
> (but it's on the list).
> Also note that if you do not have a preferred currency in your actives 
> preferences, no resource is set on the lines, so they are not catalogged in 
> stock table and then are not shown in the list, this is another way to find 
> the bug in action.
> It is still possible to see all transactions by going to search fields and 
> removing all search parameters (some are automatically initiallized).

What I've just found out is that a transaction is listed only if it has 
lines AND at least one line has an account - if a transaction has lines 
but none of them is assigned an account, the transaction is not listed 
no matter what. Values in lines don't matter.

BG

> 
>> I think the reason is that
>> AccountingTransactionModule_zGetAccountingTransactionList now joins with
>> movement and stock, which have no corresponding entries if the
>> transaction has no value.
>>
>> A bug, or a feature? ;)
> 


-- 
"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