[FIX] account: reconciliation domain
During reconciliation wizard, the wizard tries to find the best match with exisiting unreconciled lines. When more than one line could be reconciled with the bank statement line, the oldest line was not selected. e.g. - statemement line: 10€ - invoice 1: 10€ - invoice 2: 10€ - invoice 3: 5€ The statement line was reconciled with the 5€ invoice instead of the first one. This was due to the domain not matching when the exact same amount was found. Sign CLA for compassionCH Closes #8767
This commit is contained in:
parent
cca7a7a051
commit
34ce3e36e1
|
@ -590,9 +590,9 @@ class account_bank_statement_line(osv.osv):
|
|||
else:
|
||||
domain += [('account_id.type', '=', 'payable')]
|
||||
if amount_field == 'amount_currency' and amount < 0:
|
||||
domain += [(amount_field, '<', 0), (amount_field, '>', (sign * amount))]
|
||||
domain += [(amount_field, '<', 0), (amount_field, '>=', (sign * amount))]
|
||||
else:
|
||||
domain += [(amount_field, '>', 0), (amount_field, '<', (sign * amount))]
|
||||
domain += [(amount_field, '>', 0), (amount_field, '<=', (sign * amount))]
|
||||
mv_lines = self.get_move_lines_for_reconciliation(cr, uid, st_line, excluded_ids=excluded_ids, limit=5, additional_domain=domain, context=context)
|
||||
ret = []
|
||||
total = 0
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
Switzerland, 2015-08-18
|
||||
|
||||
Compassion Switzerland agrees to the terms of the Odoo Corporate Contributor License
|
||||
Agreement v1.0.
|
||||
|
||||
I declare that I am authorized and able to make this agreement and sign this
|
||||
declaration.
|
||||
|
||||
Signed,
|
||||
|
||||
Emanuel Cino ecino@compassion.ch https://github.com/CompassionCH
|
||||
|
||||
|
||||
List of contributors:
|
||||
|
||||
Emanuel Cino ecino@compassion.ch https://github.com/ecino
|
Loading…
Reference in New Issue