From 24a7dd6d18a1413ec34b906274365e4b2fef28e8 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 8 Nov 2016 01:47:14 -0800 Subject: [PATCH] 4.x style one-time charge --- httemplate/edit/quick-charge.html | 24 +++++++++++++----------- httemplate/elements/header-cust_main.html | 5 +++-- httemplate/elements/tr-select-pkg_class.html | 2 +- httemplate/elements/tr-select-taxclass.html | 2 +- 4 files changed, 18 insertions(+), 15 deletions(-) diff --git a/httemplate/edit/quick-charge.html b/httemplate/edit/quick-charge.html index 330081533..51cd854ca 100644 --- a/httemplate/edit/quick-charge.html +++ b/httemplate/edit/quick-charge.html @@ -1,9 +1,11 @@ % if ( $quotationnum ) { -<& /elements/header.html, mt('One-time charge'), '', - ( ($quotationnum || $cgi->param('error')) ? '' : 'onload="addRow()"' ), -&> +<& /elements/header.html, mt('One-time charge') &> % } else { -<& /elements/header-cust_main.html, view=>'packages', cust_main=>$cust_main &> +<& /elements/header-cust_main.html, + view => 'packages', + cust_main => $cust_main, + etc => $cgi->param('error') ? '' : 'onload="addRow()"', +&>

One-time charge

% } @@ -113,7 +115,7 @@ function bill_now_changed (what) { - +
% if ( $cust_pkg ) { #modify one-time charge @@ -201,7 +203,7 @@ function bill_now_changed (what) { % } else { # new one-time charge - + - + + + + @@ -331,7 +333,7 @@ function bill_now_changed (what) { % } # 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 %> <& /elements/header.html, { - 'title' => $title, + 'title' => $title, 'title_noescape' => $title_noescape, - 'nobr' => 1, + 'nobr' => 1, + 'etc' => $opt{'etc'}, } &> diff --git a/httemplate/elements/tr-select-pkg_class.html b/httemplate/elements/tr-select-pkg_class.html index 28ed5d67d..9f782e663 100644 --- a/httemplate/elements/tr-select-pkg_class.html +++ b/httemplate/elements/tr-select-pkg_class.html @@ -5,7 +5,7 @@ % } else {
<% $opt{'label'} || 'Package class' %><% $opt{'label'} || 'Package class' %> <% include( '/elements/select-pkg_class.html', 'curr_value' => $classnum, diff --git a/httemplate/elements/tr-select-taxclass.html b/httemplate/elements/tr-select-taxclass.html index 97f3cad0b..22c560ea7 100644 --- a/httemplate/elements/tr-select-taxclass.html +++ b/httemplate/elements/tr-select-taxclass.html @@ -7,7 +7,7 @@ % } else {
<% $opt{'label'} || 'Tax class: ' %><% $opt{'label'} || 'Tax class: ' %> <% include( '/elements/select-taxclass.html', 'curr_value' => $selected_taxclass, -- 2.11.0