X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_credit.cgi;h=dc80847deb206353dda040ce4bdad9982ca02eb6;hb=d6741df87df9e3352d7ae47a02d0e3f46154fef9;hp=c6b2bcbeab56add15c84abe975217b0efe445ada;hpb=4396080ed2829ae0595f1fd777f39d090c9bcd7c;p=freeside.git diff --git a/httemplate/edit/cust_credit.cgi b/httemplate/edit/cust_credit.cgi index c6b2bcbea..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,6 +35,12 @@ Credit %> + Additional info + + + + + Auto-apply
to invoices @@ -59,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'); @@ -75,7 +78,4 @@ my $_date = time; my $otaker = getotaker; my $p1 = popurl(1); -my $cust_main = qsearchs('cust_main', { 'custnum' => $custnum } ) - or die "unknown custnum $custnum\n"; -