diff options
author | ivan <ivan> | 2005-01-06 19:48:08 +0000 |
---|---|---|
committer | ivan <ivan> | 2005-01-06 19:48:08 +0000 |
commit | b5f5f30af1a68a03eae894753bdbd7c66a122670 (patch) | |
tree | ad1d9b1d876b3f5abb18e3f1963a372de2a9baed | |
parent | e438cf154c913221a998464a45a3388584d0cefb (diff) |
format artera turbo hex keycodes in uppercase
-rw-r--r-- | FS/FS/cust_svc.pm | 3 | ||||
-rw-r--r-- | FS/FS/part_export/artera_turbo.pm | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/FS/FS/cust_svc.pm b/FS/FS/cust_svc.pm index 9c24b0013..aa0ac5a5d 100644 --- a/FS/FS/cust_svc.pm +++ b/FS/FS/cust_svc.pm @@ -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; } diff --git a/FS/FS/part_export/artera_turbo.pm b/FS/FS/part_export/artera_turbo.pm index 68910ed75..2fde0d117 100644 --- a/FS/FS/part_export/artera_turbo.pm +++ b/FS/FS/part_export/artera_turbo.pm @@ -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'; |