[FIX] account: bank statement reconciliation widget: do not propose partial reconciliation if there are created lines

This commit is contained in:
Arthur Maniet 2014-12-05 15:12:33 +01:00
parent cc703c736c
commit 8b6d72d8c8
1 changed files with 2 additions and 1 deletions

View File

@ -1535,7 +1535,8 @@ openerp.account = function (instance) {
self.set("balance", balance);
// Propose partial reconciliation if necessary
if (lines_selected_num === 1 &&
if (self.getCreatedLines().length === 0 &&
lines_selected_num === 1 &&
self.st_line.amount * balance > 0 &&
self.st_line.amount * (mv_lines_selected[0].debit - mv_lines_selected[0].credit) < 0 &&
! mv_lines_selected[0].partial_reconcile) {