mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Code for reconcile.
This commit is contained in:
8
public/js/ff/accounts/reconcile.js
vendored
8
public/js/ff/accounts/reconcile.js
vendored
@@ -134,7 +134,7 @@ function calculateBalanceDifference() {
|
||||
var endBalance = parseFloat($('input[name="end_balance"]').val());
|
||||
balanceDifference = startBalance - endBalance;
|
||||
//if (balanceDifference < 0) {
|
||||
// balanceDifference = balanceDifference * -1;
|
||||
// balanceDifference = balanceDifference * -1;
|
||||
//}
|
||||
}
|
||||
|
||||
@@ -153,13 +153,15 @@ function getTransactionsForRange() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Loop over all transactions that have already been cleared and add this to the selectedAmount.
|
||||
* Loop over all transactions that have already been cleared (in the range) and add this to the selectedAmount.
|
||||
*
|
||||
*/
|
||||
function includeClearedTransactions() {
|
||||
$.each($('input[class="cleared"]'), function (i, v) {
|
||||
var obj = $(v);
|
||||
selectedAmount = selectedAmount - parseFloat(obj.val());
|
||||
if (obj.data('younger') === false) {
|
||||
selectedAmount = selectedAmount - parseFloat(obj.val());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user