[freeside-commits] freeside/FS/FS/part_export soma.pm,1.3,1.4
Jeff Finucane,420,,
jeff at wavetail.420.am
Mon Nov 24 07:36:51 PST 2008
Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail.420.am:/tmp/cvs-serv25078
Modified Files:
soma.pm
Log Message:
doh
Index: soma.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/soma.pm,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- soma.pm 24 Nov 2008 15:18:42 -0000 1.3
+++ soma.pm 24 Nov 2008 15:36:48 -0000 1.4
@@ -383,8 +383,8 @@
if ($svcdb eq 'svc_external') {
my $esn = $svc->title;
- $esn =~ /^\s*(\d[a-fA-F])+\s*$/ && ($esn = $1);
- return sprintf( '%016X', $esn ) if $svcdb eq 'svc_external';
+ $esn =~ /^\s*([\da-fA-F]{1,16})\s*$/ && ($esn = $1);
+ return sprintf( '%016s' );
}
my $cust_pkg = $svc->cust_svc->cust_pkg;
@@ -399,9 +399,9 @@
if scalar( @cust_svc ) > 1;
my $esn = $cust_svc[0]->svc_x->title;
- $esn =~ /^\s*(\d[a-fA-F])+\s*$/ && ($esn = $1);
+ $esn =~ /^\s*([\da-fA-F]{1,16})\s*$/ && ($esn = $1);
- sprintf( '%016X', $esn );
+ sprintf( '%016s', $esn );
}
More information about the freeside-commits
mailing list