Skip to content

Firefly III: a personal finances manager

Fix wrong reconciliation difference with "select all" button

Florian Dupret7105d34fb324
diff --git a/public/v1/js/ff/accounts/reconcile.js b/public/v1/js/ff/accounts/reconcile.js
index 45aafed7ed..354aacefae 100644
--- a/public/v1/js/ff/accounts/reconcile.js
+++ b/public/v1/js/ff/accounts/reconcile.js
@@ -90,6 +90,10 @@ function selectAllReconcile(e) {
var identifier = 'checked_' + journalId;
console.log('in selectAllReconcile(' + journalId + ') with amount ' + amount + ' and selected amount ' + selectedAmount);
+ // do nothing if line is already in target state
+ if (check.prop('checked') === doCheck )
+ return;
+
check.prop('checked', doCheck);
// if checked, add to selected amount
if (doCheck === true && check.data('younger') === false) {