Discussion:
[Erp5-dev] Accounting transactions list does not display empty transactions
Bartłomiej Górny
2006-01-24 15:29:04 UTC
Permalink
Hello

Problem: accounting module does not list transactions which have no
accounting transaction lines or only lines with zero value.

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? ;)

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"
Jérôme Perrin
2006-01-24 15:55:38 UTC
Permalink
Post by Bartłomiej Górny
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).
Post by Bartłomiej Górny
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? ;)
--
J?rome
Bartłomiej Górny
2006-01-24 19:20:06 UTC
Permalink
Post by Jérôme Perrin
Post by Bartłomiej Górny
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
Post by Jérôme Perrin
Post by Bartłomiej Górny
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"
Loading...