format artera turbo hex keycodes in uppercase
authorivan <ivan>
Thu, 6 Jan 2005 19:48:08 +0000 (19:48 +0000)
committerivan <ivan>
Thu, 6 Jan 2005 19:48:08 +0000 (19:48 +0000)
FS/FS/cust_svc.pm
FS/FS/part_export/artera_turbo.pm

index 9c24b00..aa0ac5a 100644 (file)
@@ -315,7 +315,8 @@ sub _svc_label {
   } elsif ( $svcdb eq 'svc_external' ) {
     my $conf = new FS::Conf;
     if ( $conf->config('svc_external-display_type') eq 'artera_turbo' ) {
-      $tag = sprintf('%010d', $svc_x->id). '-'. sprintf('%010x', hex($svc_x->title) );
+      $tag = sprintf('%010d', $svc_x->id). '-'.
+             uc( sprintf('%010x', hex($svc_x->title)) );
     } else {
       $tag = $svc_x->id. ': '. $svc_x->title;
     }
index 68910ed..2fde0d1 100644 (file)
@@ -104,7 +104,7 @@ sub _export_insert {
   if ( $result->{'id'} == 1 ) {
     my $new = new FS::svc_external { $svc_external->hash };
     $new->id(sprintf('%010d', $result->{'ASN'}));
-    $new->title(sprintf('%010x', hex($result->{'AKC'}) ));
+    $new->title(uc(sprintf('%010x', hex($result->{'AKC'}) )));
     $new->replace($svc_external);
   } else {
     $result->{'message'} || 'No response from Artera';