From: Jeremy Davis Date: Mon, 1 Jun 2015 14:43:18 +0000 (-0400) Subject: Strip white space from numbers X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=38f947640357484d1f38c2cb8ffe1924446ede73 Strip white space from numbers --- diff --git a/FS/FS/cdr/ispphone.pm b/FS/FS/cdr/ispphone.pm index 2817d53c1..c2ba1862d 100644 --- a/FS/FS/cdr/ispphone.pm +++ b/FS/FS/cdr/ispphone.pm @@ -15,8 +15,16 @@ use Date::Parse; 'import_fields' => [ 'accountcode', # Accountcode - 'src', # Form - 'dst', # To + sub { my ($cdr, $src) = @_; + $src =~ s/^\s+//; + $cdr->set('src', $src); + + }, # Form + sub { my ($cdr, $dst) = @_; + $dst =~ s/^\s+//; + $cdr->set('dst', $dst); + + }, # To skip(1), # Country 'upstream_dst_regionname', # Description _cdr_date_parser_maker('startdate'), #DateTime