Code for reconcile.

This commit is contained in:
James Cole
2017-11-22 20:20:44 +01:00
parent 1fee62566b
commit 0faa599b4c
6 changed files with 40 additions and 8 deletions

View File

@@ -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());
}
});
}