just 0-pad the key codes, don't try fancy things with hex and sprintf
[freeside.git] / FS / FS / cust_svc.pm
index aa0ac5a..c91eba1 100644 (file)
@@ -316,7 +316,7 @@ sub _svc_label {
     my $conf = new FS::Conf;
     if ( $conf->config('svc_external-display_type') eq 'artera_turbo' ) {
       $tag = sprintf('%010d', $svc_x->id). '-'.
-             uc( sprintf('%010x', hex($svc_x->title)) );
+             substr('0000000000'.uc($svc_x->title), -10);
     } else {
       $tag = $svc_x->id. ': '. $svc_x->title;
     }