*General ledger:Total for currency for non landscape print----Solved

bzr revid: patelamit2003@gmail.com-20080929053213-bxpunm317g6288zd
This commit is contained in:
apa-tiny
2008-09-29 11:02:13 +05:30
parent 7070102e99
commit 36868a1600
2 changed files with 2 additions and 6 deletions
+1 -3
View File
@@ -351,9 +351,7 @@ class general_ledger(rml_parse.rml_parse):
def _sum_currency_amount_account(self, account, form):
self._set_get_account_currency_code(account.id)
self.cr.execute("select sum(aml.amount_currency) from account_move_line as aml "\
"LEFT JOIN account_account aa on aml.account_id=%d "\
"AND aml.currency_id = aa.currency_id"%account.id)
self.cr.execute("SELECT sum(aml.amount_currency) FROM account_move_line as aml,res_currency as rc WHERE aml.currency_id = rc.id AND aml.account_id= %d "%account.id)
total = self.cr.fetchone()
if self.account_currency:
@@ -352,9 +352,7 @@ class general_ledger_landscape(rml_parse.rml_parse):
def _sum_currency_amount_account(self, account, form):
self._set_get_account_currency_code(account.id)
self.cr.execute("select sum(aml.amount_currency) from account_move_line as aml "\
"LEFT JOIN account_account aa on aml.account_id=%d "\
"AND aml.currency_id = aa.currency_id"%account.id)
self.cr.execute("SELECT sum(aml.amount_currency) FROM account_move_line as aml,res_currency as rc WHERE aml.currency_id = rc.id AND aml.account_id= %d "%account.id)
total = self.cr.fetchone()
if self.account_currency: