[FIX] Account : Automatic reonciliation now sorts move lines by maturity date
lp bug: https://launchpad.net/bugs/599087 fixed bzr revid: jvo@tinyerp.com-20101006133159-sekg06vnxxu7trc9
This commit is contained in:
committed by
Jay (OpenERP)
parent
2d327459ec
commit
f2e0e0ead9
@@ -200,7 +200,8 @@ class account_automatic_reconcile(osv.osv_memory):
|
||||
"AND partner_id=%s " \
|
||||
"AND reconcile_id IS NULL " \
|
||||
"AND state <> 'draft' " \
|
||||
"AND debit > 0",
|
||||
"AND debit > 0 " \
|
||||
"ORDER BY date_maturity",
|
||||
(account_id, partner_id))
|
||||
debits = cr.fetchall()
|
||||
|
||||
@@ -212,7 +213,8 @@ class account_automatic_reconcile(osv.osv_memory):
|
||||
"AND partner_id=%s " \
|
||||
"AND reconcile_id IS NULL " \
|
||||
"AND state <> 'draft' " \
|
||||
"AND credit > 0",
|
||||
"AND credit > 0 " \
|
||||
"ORDER BY date_maturity",
|
||||
(account_id, partner_id))
|
||||
credits = cr.fetchall()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user