From e1fbc0653fe71b540d9f58c225a9b9cc6b9f796b Mon Sep 17 00:00:00 2001 From: jeff Date: Mon, 24 Nov 2008 14:48:28 +0000 Subject: [PATCH] esn's are hex --- FS/FS/part_export/soma.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FS/FS/part_export/soma.pm b/FS/FS/part_export/soma.pm index c57fc7ff1..b290db844 100644 --- a/FS/FS/part_export/soma.pm +++ b/FS/FS/part_export/soma.pm @@ -381,7 +381,7 @@ sub esn { my ( $self, $svc ) = @_; my $svcdb = $svc->cust_svc->part_svc->svcdb; - return sprintf( '%016d', $svc->id ) if $svcdb eq 'svc_external'; + return sprintf( '%016X', $svc->title ) if $svcdb eq 'svc_external'; my $cust_pkg = $svc->cust_svc->cust_pkg; return '' unless $cust_pkg; @@ -394,7 +394,7 @@ sub esn { warn "part_export::soma found multiple ESNs for cust_svc ". $svc->svcnum if scalar( @cust_svc ) > 1; - sprintf( '%016d', $cust_svc[0]->svc_x->id ); + sprintf( '%016X', $cust_svc[0]->svc_x->title ); } -- 2.11.0