Small changes in partner ledger

bzr revid: patelamit2003@gmail.com-20081103101325-rdq9d6nnq2wsjv3z
This commit is contained in:
apa-tiny 2008-11-03 15:43:25 +05:30
parent eeec0ee187
commit 4caeadb2bd
1 changed files with 3 additions and 3 deletions

View File

@ -255,7 +255,7 @@ class third_party_ledger(rml_parse.rml_parse):
"LEFT JOIN account_journal j " \ "LEFT JOIN account_journal j " \
"ON (l.journal_id = j.id) " \ "ON (l.journal_id = j.id) " \
"WHERE l.partner_id = %d " \ "WHERE l.partner_id = %d " \
# "AND l.account_id IN (" + self.account_ids + ") " \ "AND l.account_id IN (" + self.account_ids + ") " \
"AND l.date IN (" + self.date_lst_string + ") " \ "AND l.date IN (" + self.date_lst_string + ") " \
" " + RECONCILE_TAG + " "\ " " + RECONCILE_TAG + " "\
"ORDER BY l.id", "ORDER BY l.id",
@ -297,7 +297,7 @@ class third_party_ledger(rml_parse.rml_parse):
"SELECT sum(debit) " \ "SELECT sum(debit) " \
"FROM account_move_line " \ "FROM account_move_line " \
"WHERE partner_id = %d " \ "WHERE partner_id = %d " \
# "AND account_id IN (" + self.account_ids + ") " \ "AND account_id IN (" + self.account_ids + ") " \
" " + RECONCILE_TAG + " " \ " " + RECONCILE_TAG + " " \
"AND date IN (" + self.date_lst_string + ") " , "AND date IN (" + self.date_lst_string + ") " ,
(partner.id,)) (partner.id,))
@ -361,7 +361,7 @@ class third_party_ledger(rml_parse.rml_parse):
"SELECT sum(debit) " \ "SELECT sum(debit) " \
"FROM account_move_line " \ "FROM account_move_line " \
"WHERE partner_id IN (" + self.partner_ids + ") " \ "WHERE partner_id IN (" + self.partner_ids + ") " \
# "AND account_id IN (" + self.account_ids + ") " \ "AND account_id IN (" + self.account_ids + ") " \
"AND reconcile_id IS NULL " \ "AND reconcile_id IS NULL " \
"AND date < %s " , "AND date < %s " ,
(self.date_lst[0],)) (self.date_lst[0],))