X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_credit.cgi;h=6e8a9c9892e76fad982982e5404699d128d33983;hp=c9ca31ff39194f23b2775784ba2e8d01101d36a7;hb=75e11f1d1a5ced24496b5732e290f7762403feb8;hpb=145e7ee0b767e95c229657680ae477bb693ac7fc diff --git a/httemplate/edit/cust_credit.cgi b/httemplate/edit/cust_credit.cgi index c9ca31ff3..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,51 +10,62 @@ -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') ) { + <& /elements/tr-select-cust_pkg-balances.html, + 'custnum' => $custnum, + 'cgi' => $cgi + &> +% } else { + +% }
-
+
-<%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');