[freeside-users] Changing Date Format/Uploading completed CC batch

John freesidelist at cci.net.au
Wed Jun 7 23:32:36 PDT 2006


Hi All

Ive been using freeside for some years (great stuff Ivan!!) and for the first time ever Im forced to ask the list a few rather mundane questions with the hope that someone can help me out.

My setup is still under construction- Freeside 1.5.7 on slackware linux 10.2, perl 5.8.7, postgres 8.0.3, using radiator + 2 acct hooks for inserting session information into a freeradius style accounting table. 

My first question is with the date format.  Because Im using freeside in Australia the american date format, particularly with invoices only serves to confuse our customers.  How/where do I change it and will it affect freesides behaviour??

The second question is in regard to the format of the csv that I would upload to freeside via cust_pay_batch.cgi so that our credit card run can be completed.  I cant quite seem to get the format right (probably the date format) and it generates the following error-

   error:  substr outside of string at
/usr/local/lib/perl5/site_perl/5.8.7/FS/cust_pay_batch.pm line 271,
<fh00001C%3A\Documents and Settings\Administrator\My
Documents\fullbatchreadytotest.csv> line 1.

      context:  ...
            267:
            268:  $hook = sub {
            269:  my $hash = shift;
            270:  $hash->{'paid'} = sprintf("%.2f", $hash->{'paid'} / 100 );
            271:  $hash->{'_date'} = timelocal( substr($hash->{'time'}, 4,
2),
            272:  substr($hash->{'time'}, 2, 2),
            273:  substr($hash->{'time'}, 0, 2),
            274:  substr($hash->{'_date'}, 6, 2),
            275:  substr($hash->{'_date'}, 4, 2)-1,

Would someone perhaps be kind enough to steer me in the right direction??

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://420.am/pipermail/freeside-users/attachments/20060608/2534ff0d/attachment.htm


More information about the freeside-users mailing list