X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_credit.cgi;h=dc80847deb206353dda040ce4bdad9982ca02eb6;hb=f424f11eb366fe64f5f7bb42b21745e22537cab1;hp=c9ca31ff39194f23b2775784ba2e8d01101d36a7;hpb=145e7ee0b767e95c229657680ae477bb693ac7fc;p=freeside.git diff --git a/httemplate/edit/cust_credit.cgi b/httemplate/edit/cust_credit.cgi index c9ca31ff3..dc80847de 100755 --- a/httemplate/edit/cust_credit.cgi +++ b/httemplate/edit/cust_credit.cgi @@ -10,12 +10,11 @@ -Credit <% ntable("#cccccc", 2) %> Date - <% time2str("%D",$_date) %> + <% time2str($date_format, $_date) %> @@ -36,10 +35,26 @@ Credit %> + Additional info + + + + + Auto-apply
to invoices +% if ( $conf->exists('pkg-balances') ) { + <% include('/elements/tr-select-cust_pkg-balances.html', + 'custnum' => $custnum, + 'cgi' => $cgi + ) + %> +% } else { + +% } +
@@ -49,12 +64,10 @@ 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');