From: jeff Date: Mon, 24 Nov 2008 14:48:28 +0000 (+0000) Subject: esn's are hex X-Git-Tag: root_of_webpay_support~232 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=e1fbc0653fe71b540d9f58c225a9b9cc6b9f796b esn's are hex --- 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 ); }