X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_credit.cgi;h=6e8a9c9892e76fad982982e5404699d128d33983;hp=5785a05c09db10ce653f4b44b21246f478654e08;hb=8c5a1df1a46121c75a829eb1d57956c9731940ab;hpb=40a7b3dc653e099f7bd0bd762b649b04c4432db2 diff --git a/httemplate/edit/cust_credit.cgi b/httemplate/edit/cust_credit.cgi index 5785a05c0..6e8a9c989 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 &>
@@ -10,42 +10,45 @@ -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, - ) -%> +&> + + + <% mt('Additional info') |h %> + + + +% if ( $conf->exists('credits-auto-apply-disable') ) { + +% } else { - Auto-apply
to invoices - + <% 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');