← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 656378] Re: [trunk] general ledger -

 

1) python math
sum_balance += self.cr.fetchone()[0] or 0.0
might create a value of +/- 0.000000015 or something like that  and will missmatch  'with balance <> 0' 

2) accounting needs
do not print account if
* sold_account = 0 AND debit = 0 AND credit = 0 AND INITIAL/OPENING = 0
all of these values must be 0 to exclude from printing

-- 
[trunk] general ledger -
https://bugs.launchpad.net/bugs/656378
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: Incomplete

Bug description:
account_general_ledger.py
 
           elif self.display_account == 'bal_solde':
                if child_account.type != 'view' and num_entry <> 0 :
                    if ( sold_account <> 0.0):
                        res.append(child_account)

for accountants it is important to only exclude accounts which have all values of a line != 0

meaning 
do not print account if 
* sold_account = 0 AND debit = 0 AND credit = 0 AND INITIAL/OPENING = 0
(did not investigate the field names )

it would also reduce a lot of output if 
"With all values is not equal to 0"
is set to default (I know this can be done using RMB but requires unnecessary user/admin/partner interaction)