summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-12-14 17:57:46 -0800
committerMark Wells <mark@freeside.biz>2012-12-14 17:57:46 -0800
commit8350bd8c54302669ded9e20285b53a1cca996473 (patch)
tree045700540b2c8f35bb7488d8af6e36515c64b9c1 /httemplate/edit
parent817b5b87447dc24ca004ee8ca014c4a4d527c741 (diff)
fixes for line item credit application, #18676
Diffstat (limited to 'httemplate/edit')
-rw-r--r--httemplate/edit/credit-cust_bill_pkg.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/httemplate/edit/credit-cust_bill_pkg.html b/httemplate/edit/credit-cust_bill_pkg.html
index e317936b3..1c6d5e5c7 100644
--- a/httemplate/edit/credit-cust_bill_pkg.html
+++ b/httemplate/edit/credit-cust_bill_pkg.html
@@ -69,6 +69,7 @@
'field' => 'reasonnum',
'reason_class' => 'R',
#XXX reconcile both this and show_taxes wanteding to enable this
+ 'id' => 'select_reason',
'control_button' => "document.getElementById('credit_button')",
'cgi' => $cgi,
&>
@@ -94,6 +95,8 @@
%>
<SCRIPT TYPE="text/javascript">
+document.getElementById('select_reason').disabled = true;
+ // start it disabled because no line items are selected yet
function show_taxes(arg) {
var argsHash = eval('(' + arg + ')');
@@ -166,14 +169,16 @@ function show_taxes(arg) {
//XXX reconcile both this and the reason selector wanteding to enable this
if ( total > 0 ) {
- document.getElementById('credit_button').disabled = false;
+ //document.getElementById('credit_button').disabled = false;
+ document.getElementById('select_reason').disabled = false;
}
}
function calc_total(what) {
- document.getElementById('credit_button').disabled = true;
+ //document.getElementById('credit_button').disabled = true;
+ document.getElementById('select_reason').disabled = true;
var subtotal = 0;
// bah, a pain, just using an attribute var re = /^billpkgnum(\d+)$/;