X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_credit.cgi;h=1238e9490bc936dfaf6c0e318b27b0563be869bc;hb=dc1891ff9a6e6c4b4545fe7f786af6bd0f28b2cf;hp=febf281f9cffabd2a8992fe51602649f4fa06d4d;hpb=63a268637b2d51a8766412617724b9436439deb6;p=freeside.git diff --git a/httemplate/edit/cust_credit.cgi b/httemplate/edit/cust_credit.cgi index febf281f9..1238e9490 100755 --- a/httemplate/edit/cust_credit.cgi +++ b/httemplate/edit/cust_credit.cgi @@ -14,12 +14,12 @@ Date - <% time2str("%D",$_date) %> + <% time2str($date_format, $_date) %> Amount - $ + $ % @@ -64,12 +64,10 @@ -<%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');