X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fquick-charge.html;h=51cd854ca436a3c919d9c891de31b211810da6e4;hp=2bbbe43d8fb70db2af68608c9ef607d833e3c0df;hb=24a7dd6d18a1413ec34b906274365e4b2fef28e8;hpb=4b05b20576ddb14577d59c87c8257c6804449410 diff --git a/httemplate/edit/quick-charge.html b/httemplate/edit/quick-charge.html index 2bbbe43d8..51cd854ca 100644 --- a/httemplate/edit/quick-charge.html +++ b/httemplate/edit/quick-charge.html @@ -1,11 +1,16 @@ -<& /elements/header.html, mt('One-time charge'), '', - ( ($quotationnum || $cgi->param('error')) ? '' : 'onload="addRow()"' ), +% if ( $quotationnum ) { +<& /elements/header.html, mt('One-time charge') &> +% } else { +<& /elements/header-cust_main.html, + view => 'packages', + cust_main => $cust_main, + etc => $cgi->param('error') ? '' : 'onload="addRow()"', &> +

One-time charge

+% } - - - - +<& /elements/init_calendar.html &> + <& /elements/error.html &> @@ -39,7 +44,7 @@ function enable_quick_charge (e) { function validate_quick_charge () { var pkg = document.QuickChargeForm.pkg.value; - var pkg_regex = /^([\w \!\@\#\$\%\&\(\)\-\+\;\:\'\"\,\.\?\/\=\[\]]*)$/ ; + var pkg_regex = XRegExp('^([\\p{L}\\p{N} \_\!\@\#\$\%\&\(\)\+\;\:\'\"\,\.\?\/\=\\-\\[\\]]*)$'); var amount = document.QuickChargeForm.amount.value; var amount_regex = /^\s*\$?\s*(\d*(\.?\d{1,2}))\s*$/ ; var rval = true; @@ -94,13 +99,7 @@ function bill_now_changed (what) {

-% if ( $cust_main ) { -<& /elements/small_custview.html, - $cust_main->custnum, - scalar($conf->config('countrydefault')), - 1, #no balance -&> -% } else { +% if ( $prospect_main ) { <& /elements/small_prospect_view.html, $prospect_main &> % }

@@ -116,7 +115,7 @@ function bill_now_changed (what) { - +
% if ( $cust_pkg ) { #modify one-time charge @@ -204,7 +203,7 @@ function bill_now_changed (what) { % } else { # new one-time charge - + - + + + + -<& /elements/tr-select-taxclass.html, 'curr_value' => $cgi->param('taxclass') &> +<& /elements/tr-select-taxclass.html, 'curr_value' => scalar($cgi->param('taxclass')) &> <& /elements/tr-select-taxproduct.html, - 'label' => emt('Tax product'), - 'curr_value' => $cgi->param('taxproductnum') + 'label' => emt('Tax product'), + 'curr_value' => scalar($cgi->param('taxproductnum')), &> <& /elements/tr-select-taxoverride.html, - 'curr_value' => $cgi->param('tax_override') + 'curr_value' => scalar($cgi->param('tax_override')), &> % } # if !$cust_pkg - +
<% mt('Amount to charge') |h %> <% mt('Amount to charge') |h %> <% $money_char %>exists('invoice-unitprice') ) {
<% mt('Quantity') |h %> <% mt('Quantity') |h %> - <% mt('Invoice now') |h %><% mt('Invoice now') |h %> - <% mt('Charge date') |h %> <% mt('Charge date') |h %> - <% mt('Tax exempt') |h %> <% mt('Tax exempt') |h %> param('setuptax') ? 'CHECKED' : '' %>>
<% mt('Description') |h %> <% mt('Description') |h %>