Changed some text is populate.

This commit is contained in:
Jonathan Rosenbaum
2015-01-12 18:57:52 +00:00
parent a44e5e93f2
commit bf2527e1cf
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ $(function() {
var sum = Number(v.check) + Number(v.cash);
$("#" + k + "_sum span").text("$" + sum.toFixed(2));
// Difference
// Difference (regexp - good up to 6 places and 2 digits)
var deposit_amount = $('input[name="' + k + '"]').parent().prev().prev().text().replace(/\$(\d*(?:,\d{3})*\.\d*)\s+/, "$1" );
deposit_amount = deposit_amount.replace(/,/, "");
if (deposit_amount != 0) {