summaryrefslogtreecommitdiff
path: root/FS/FS
diff options
context:
space:
mode:
authorivan <ivan>2005-01-05 19:29:11 +0000
committerivan <ivan>2005-01-05 19:29:11 +0000
commitc836e10e2ba51bf5f0e1671484db367248218a0c (patch)
treeb6f8ee6ec75827f4243eaf620a7e6a24ed5277bf /FS/FS
parent3b6e45a965df08e1ccd6989b000d24913513b764 (diff)
key codes are hex!
Diffstat (limited to 'FS/FS')
-rw-r--r--FS/FS/cust_svc.pm2
-rw-r--r--FS/FS/part_export/artera_turbo.pm4
2 files changed, 3 insertions, 3 deletions
diff --git a/FS/FS/cust_svc.pm b/FS/FS/cust_svc.pm
index f7b98c6..9c24b00 100644
--- a/FS/FS/cust_svc.pm
+++ b/FS/FS/cust_svc.pm
@@ -315,7 +315,7 @@ 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('%010d', $svc_x->title);
+ $tag = sprintf('%010d', $svc_x->id). '-'. 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 6b70329..8e2ed85 100644
--- a/FS/FS/part_export/artera_turbo.pm
+++ b/FS/FS/part_export/artera_turbo.pm
@@ -101,7 +101,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('%010d', $result->{'AKC'}));
+ $new->title(sprintf('%010x', hex($result->{'AKC'}) ));
$new->replace($svc_external);
} else {
$result->{'message'} || 'No response from Artera';
@@ -165,7 +165,7 @@ sub statusChange {
my $result = $artera->statusChange(
'asn' => sprintf('%010d', $id),
- 'akc' => sprintf('%010d', $title),
+ 'akc' => sprintf('%010x', hex($title)),
'statusid' => $status,
);