X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fquick-charge.html;h=2d38203fa63b310a7ec00f8035d170a7137125c6;hb=9e878943532b9ecb84bac1db76c05cf9bc09d2cc;hp=dde89176708863e4a72ebe0496986d783c85ff3d;hpb=704bb43d5343eeb523a13be55506b804d8c67bd0;p=freeside.git diff --git a/httemplate/edit/quick-charge.html b/httemplate/edit/quick-charge.html index dde891767..2d38203fa 100644 --- a/httemplate/edit/quick-charge.html +++ b/httemplate/edit/quick-charge.html @@ -1,11 +1,18 @@ -<& /elements/header.html, mt('One-time charge'), '', - ( ($quotationnum || $cgi->param('error')) ? '' : 'onload="addRow()"' ), +% if ( $quotationnum && ! $cust_main ) { +<& /elements/header.html, mt('Quotation #[_1]: add one-time charge', $quotationnum) &> +% } else { +<& /elements/header-cust_main.html, + view => $quotationnum ? 'quotations' : 'packages', + cust_main => $cust_main, + etc => $cgi->param('error') ? '' : 'onload="addRow()"', &> +

<% $quotationnum + ? emt('Quotation #[_1]: add one-time charge', $quotationnum) + : mt('One-time charge') + %>

+% } - - - - +<& /elements/init_calendar.html &> <& /elements/error.html &> @@ -95,13 +102,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 &> % }

@@ -117,7 +118,7 @@ function bill_now_changed (what) { - +
% if ( $cust_pkg ) { #modify one-time charge @@ -205,7 +206,7 @@ function bill_now_changed (what) { % } else { # new one-time charge - + - + + + + @@ -335,7 +336,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 %> - - +%my %footer_args = ( +% formvalidation => { +% QuickChargeForm => { +% validate_fields => { +% quantity => 'digits: true, min: 1, required: true', +% }, +% }, +% }, +%); +% if ( $quotationnum ) { + <& /elements/footer.html, %footer_args &> +% } else { + <& /elements/footer-cust_main.html, %footer_args &> +% } <%init> my $curuser = $FS::CurrentUser::CurrentUser;