X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_credit.cgi;h=09300c62992426de9fb415be30beb2353a14ef7b;hb=aae697565c071b2880d0106b00a4a01d0ddab7bf;hp=5785a05c09db10ce653f4b44b21246f478654e08;hpb=40a7b3dc653e099f7bd0bd762b649b04c4432db2;p=freeside.git diff --git a/httemplate/edit/cust_credit.cgi b/httemplate/edit/cust_credit.cgi index 5785a05c0..09300c629 100755 --- a/httemplate/edit/cust_credit.cgi +++ b/httemplate/edit/cust_credit.cgi @@ -1,6 +1,6 @@ -<% include('/elements/header-popup.html', 'Enter Credit') %> +<& /elements/header-popup.html, mt('Enter Credit') &> -<% include('/elements/error.html') %> +<& /elements/error.html &>
@@ -8,44 +8,47 @@ - -Credit <% ntable("#cccccc", 2) %> - Date - <% time2str("%D",$_date) %> + <% mt('Date') |h %> + <% time2str($date_format, $_date) %> - Amount - $ + <% mt('Amount') |h %> + $ -% -%#print qq! Also post refund!; -% - -<% include( '/elements/tr-select-reason.html', +<& /elements/tr-select-reason.html, 'field' => 'reasonnum', 'reason_class' => 'R', 'control_button' => "document.getElementById('confirm_credit_button')", 'cgi' => $cgi, - ) -%> +&> - Auto-apply
to invoices - + <% mt('Additional info') |h %> + + + +% if ( $conf->exists('credits-auto-apply-disable') ) { + +% } else { + + <% mt('Auto-apply to invoices') |h %> + + +% } + % if ( $conf->exists('pkg-balances') ) { - <% include('/elements/tr-select-cust_pkg-balances.html', + <& /elements/tr-select-cust_pkg-balances.html, 'custnum' => $custnum, 'cgi' => $cgi - ) - %> + &> % } else { % } @@ -54,17 +57,15 @@ Credit
-
+
-<%once> +<%init> my $conf = new FS::Conf; - - -<%init> +my $date_format = $conf->config('date_format') || '%m/%d/%Y'; die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Post credit'); @@ -72,7 +73,6 @@ die "access denied" my $custnum = $cgi->param('custnum'); my $amount = $cgi->param('amount'); my $_date = time; -my $otaker = getotaker; my $p1 = popurl(1);