summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2013-06-19 01:49:54 -0700
committerMark Wells <mark@freeside.biz>2013-06-19 01:49:54 -0700
commitebb4bf021ce1fa3d3c4fc64d3641452e2f69faeb (patch)
treec1e30d2f91259907a54444ea97643cebceca2db7
parentd1ef14dc43b37960ce08aae9b795b593a24cdc15 (diff)
quick payment entry: correctly enable "Allocate" checkbox
-rw-r--r--httemplate/misc/batch-cust_pay.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/misc/batch-cust_pay.html b/httemplate/misc/batch-cust_pay.html
index 0b2f1f18c..04a402bef 100644
--- a/httemplate/misc/batch-cust_pay.html
+++ b/httemplate/misc/batch-cust_pay.html
@@ -25,7 +25,7 @@ function custnum_update_callback(rownum, prefix) {
var custnum = document.getElementById('custnum'+rownum).value;
// if there is a custnum and more than one open invoice, enable
// (and check) the box
- var show_applications = (custnum > 0 && num_open_invoices[rownum] > 1);
+ var show_applications = !(custnum > 0 && num_open_invoices[rownum] > 1);
var enable_app_checkbox = document.getElementById('enable_app'+rownum);
enable_app_checkbox.disabled = show_applications;