From 527b92c4f125282e267863cb102664da57f94ebd Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Thu, 26 Apr 2012 11:41:05 -0700 Subject: allocate quick payment only when customer has multiple open invoices, #15861 --- httemplate/misc/batch-cust_pay.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'httemplate/misc/batch-cust_pay.html') diff --git a/httemplate/misc/batch-cust_pay.html b/httemplate/misc/batch-cust_pay.html index 45459f14d..887b92489 100644 --- a/httemplate/misc/batch-cust_pay.html +++ b/httemplate/misc/batch-cust_pay.html @@ -23,7 +23,10 @@ function add_row_callback(rownum, prefix) { function custnum_update_callback(rownum, prefix) { var custnum = document.getElementById('custnum'+rownum).value; - document.getElementById('enable_app'+rownum).disabled = (custnum == 0); + document.getElementById('enable_app'+rownum).disabled = ( + custnum == 0 || + num_open_invoices[rownum] < 2 + ); % if ( $use_discounts ) { select_discount_term(rownum, prefix); % } -- cgit v1.2.1