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

One-time charge

+

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

% } <& /elements/init_calendar.html &> @@ -446,10 +449,19 @@ function bill_now_changed (what) { +%my %footer_args = ( +% formvalidation => { +% QuickChargeForm => { +% validate_fields => { +% quantity => 'digits: true, min: 1, required: true', +% }, +% }, +% }, +%); % if ( $quotationnum ) { - <& /elements/footer.html &> + <& /elements/footer.html, %footer_args &> % } else { - <& /elements/footer-cust_main.html &> + <& /elements/footer-cust_main.html, %footer_args &> % } <%init>