X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fquick-charge.html;h=1ff70009c12f79f95b98be86d74d6fb22036566b;hb=55daa3803103f841d0fb2b559040115908724da8;hp=7b88bcce9287f5106df88a73d23674d96e56ef94;hpb=63d5cd3d1b5f7f7acf42eb9e0bb9c9c1f5d4dd47;p=freeside.git diff --git a/httemplate/edit/quick-charge.html b/httemplate/edit/quick-charge.html index 7b88bcce9..1ff70009c 100644 --- a/httemplate/edit/quick-charge.html +++ b/httemplate/edit/quick-charge.html @@ -1,5 +1,5 @@ <& /elements/header-popup.html, mt('One-time charge'), '', - ( $cgi->param('error') ? '' : 'onload="addRow()"' ), + ( ($quotationnum || $cgi->param('error')) ? '' : 'onload="addRow()"' ), &> @@ -15,9 +15,9 @@ function enable_quick_charge (e) { if ( document.QuickChargeForm.amount.value && document.QuickChargeForm.pkg.value ) { - document.QuickChargeForm.submit.disabled = false; + document.QuickChargeForm.submitButton.disabled = false; } else { - document.QuickChargeForm.submit.disabled = true; + document.QuickChargeForm.submitButton.disabled = true; } % if ( $curuser->option('disable_enter_submit_onetimecharge') ) { @@ -97,27 +97,39 @@ function bill_now_changed (what) { NAME = "QuickChargeForm" ID = "QuickChargeForm" METHOD = "POST" - onSubmit = "document.QuickChargeForm.submit.disabled=true; return validate_quick_charge();" + onSubmit = "document.QuickChargeForm.submitButton.disabled=true; return validate_quick_charge();" > - + + +
<% mt('Tax exempt') |h %> | +param('setuptax') ? 'CHECKED' : '' %>> | +
<% mt('Amount') |h %> | -- <% $money_char %> - | -
<% mt('Amount to charge') |h %> | ++ <% $money_char %> + | +
<% mt('Invoice now') |h %> | -- param('bill_now') ? 'CHECKED' : '' %> - onClick = "bill_now_changed(this);" - onChange = "bill_now_changed(this);" - > - <% mt('with terms') |h %> - <& /elements/select-terms.html, - 'curr_value' => scalar($cgi->param('invoice_terms')), - 'disabled' => ( $cgi->param('bill_now') ? 0 : 1 ), - &> - | -
<% mt('Charge date') |h %> | -- param('bill_now') - ? 'STYLE = "background-color:#dddddd" DISABLED' - : '' - %> - > - - param('bill_now') ? '' : 'STYLE="display:none"' %> - > - (<% mt('leave blank to charge immediately') |h %>) - | -
<% mt('Invoice now') |h %> | ++ param('bill_now') ? 'CHECKED' : '' %> + onClick = "bill_now_changed(this);" + onChange = "bill_now_changed(this);" + > + <% mt('with terms') |h %> + <& /elements/select-terms.html, + 'curr_value' => scalar($cgi->param('invoice_terms')), + 'disabled' => ( $cgi->param('bill_now') ? 0 : 1 ), + 'agentnum' => $cust_or_prospect->agentnum, + &> + | +
<% mt('Charge date') |h %> | ++ param('bill_now') + ? 'STYLE = "background-color:#dddddd" DISABLED' + : '' + %> + > + + param('bill_now') ? '' : 'STYLE="display:none"' %> + > + (<% mt('leave blank to charge immediately') |h %>) + | +
<% mt("Disable automatic $what charge") |h %> | @@ -278,13 +327,16 @@ function bill_now_changed (what) {|
<% mt('Optional additional description (also printed on invoice):') |h %> | |
@@ -299,8 +351,9 @@ function bill_now_changed (what) { > |