Fix problem with orphan_lob_clean instead of clean_orphan_lob

and fix problem when checking analytic when amount == 0
This commit is contained in:
Dany De Bontridder 2016-05-18 09:47:38 +02:00
parent 56d655b352
commit 3d90c5e049
2 changed files with 6 additions and 2 deletions

View file

@ -158,7 +158,11 @@ function verify_ca(div)
total_amount += parseFloat(array_value[i].value);
}
var amount = Math.abs(parseFloat(g('amount_t' + idx).value));
amount = Math.round(amount*100)/100;
if (isNaN(amount)) {
amount=0;
} else {
amount = Math.round(amount*100)/100;
}
var diff = amount - total_amount;
if (Math.round(diff, 2) != 0.0)

View file

@ -234,7 +234,7 @@ if (isset($_POST["FMOD_NAME"]))
}
}
// Clean orphan log
$cn_mod->orphan_lob_clean();
$cn_mod->clean_orphan_lob();
}
// Show all available templates