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:
parent
56d655b352
commit
3d90c5e049
2 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue