clearcorp team mailing list archive
-
clearcorp team
-
Mailing list archive
-
Message #00898
lp:~dr.clearcorp/openerp-ccorp-addons/6.1-fix_general_ledger_report into lp:openerp-ccorp-addons/6.1
Diana Rodríguez Martínez has proposed merging lp:~dr.clearcorp/openerp-ccorp-addons/6.1-fix_general_ledger_report into lp:openerp-ccorp-addons/6.1.
Requested reviews:
CLEARCORP drivers (clearcorp-drivers)
For more details, see:
https://code.launchpad.net/~dr.clearcorp/openerp-ccorp-addons/6.1-fix_general_ledger_report/+merge/196555
[FIX] Fix cumul_balance variable, reset the value each time that such the account.
--
https://code.launchpad.net/~dr.clearcorp/openerp-ccorp-addons/6.1-fix_general_ledger_report/+merge/196555
Your team CLEARCORP development team is subscribed to branch lp:openerp-ccorp-addons/6.1.
=== modified file 'account_general_ledger_report/report/account_general_ledger_report.mako'
--- account_general_ledger_report/report/account_general_ledger_report.mako 2013-05-27 15:55:56 +0000
+++ account_general_ledger_report/report/account_general_ledger_report.mako 2013-11-25 15:12:55 +0000
@@ -65,6 +65,7 @@
%>
%for account in account_list_obj:
<%
+ cumul_balance = cumul_balance_curr = 0.0
cumul_balance = account_balance[account.id]['balance'] or 0.0
if 'foreign_balance' in account_balance[account.id].keys():
@@ -121,6 +122,7 @@
amount_total_credit += line.credit
cumul_balance = cumul_balance + line.debit - line.credit
+
if line.amount_currency:
cumul_balance_curr = cumul_balance_curr + line.amount_currency
amount_total_curr += line.amount_currency
Follow ups