X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fquick-charge.html;h=27841063fa9459da31504739c1d11a85827501f6;hp=64ad3a2895a26912fd35190d245f02b77035fb89;hb=75e11f1d1a5ced24496b5732e290f7762403feb8;hpb=06a85a88bfdb0d3fc79ee055eb8327658dfe63ab diff --git a/httemplate/edit/quick-charge.html b/httemplate/edit/quick-charge.html index 64ad3a289..27841063f 100644 --- a/httemplate/edit/quick-charge.html +++ b/httemplate/edit/quick-charge.html @@ -1,14 +1,13 @@ -<% include("/elements/header-popup.html", 'One-time charge', '', +<& /elements/header-popup.html, mt('One-time charge'), '', ( $cgi->param('error') ? '' : 'onload="addRow()"' ), - ) -%> +&> -<% include('/elements/error.html') %> +<& /elements/error.html &> +% if ( $cust_main->payby =~ /^(CARD|CHEK)$/ ) { +% my $what = lc(FS::payby->shortname($cust_main->payby)); + + <% mt("Disable automatic $what charge") |h %> + + +% } - Tax exempt + <% mt('Tax exempt') |h %> param('setuptax') ? 'CHECKED' : '' %>> -<% include('/elements/tr-select-taxclass.html', 'curr_value' => $cgi->param('taxclass') ) %> +<& /elements/tr-select-taxclass.html, 'curr_value' => $cgi->param('taxclass') &> -<% include('/elements/tr-select-taxproduct.html', 'label' => 'Tax product', 'onclick' => 'parent.taxproductmagic(this);', 'curr_value' => $cgi->param('taxproductnum') ) %> +<& /elements/tr-select-taxproduct.html, 'label' => emt('Tax product'), 'onclick' => 'parent.taxproductmagic(this);', 'curr_value' => $cgi->param('taxproductnum') &> -<% include('/elements/tr-select-taxoverride.html', 'onclick' => 'parent.taxoverridemagic(this);', 'curr_value' => $cgi->param('tax_override') ) %> +<& /elements/tr-select-taxoverride.html, 'onclick' => 'parent.taxoverridemagic(this);', 'curr_value' => $cgi->param('tax_override') &> - Description + <% mt('Description') |h %> @@ -174,7 +179,7 @@ function bill_now_changed (what) { - Optional additional description (also printed on invoice): + <% mt('Optional additional description (also printed on invoice):') |h %> % my $row = 0; @@ -196,7 +201,7 @@ function bill_now_changed (what) {
-param('error') ? '' :' DISABLED' %>> +param('error') ? '' :' DISABLED' %>> @@ -251,6 +256,7 @@ die "access denied" my $conf = new FS::Conf; my $date_format = $conf->config('date_format') || '%m/%d/%Y'; +my $money_char = $conf->config('money_char') || '$'; $cgi->param('custnum') =~ /^(\d+)$/ or die 'illegal custnum'; my $custnum = $1; @@ -276,12 +282,11 @@ my $pkg = $1; my $default_terms; if ( $cust_main->invoice_terms ) { - $default_terms = 'Customer default ('. $cust_main->invoice_terms. ')'; + $default_terms = emt("Customer default ([_1])", $cust_main->invoice_terms); } else { - $default_terms = - 'Default ('. - ($conf->config('invoice_default_terms') || 'Payable upon receipt'). - ')'; + $default_terms = emt("Default ([_1])", + ($conf->config('invoice_default_terms') || emt('Payable upon receipt')) + ); }