X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=FS%2FFS%2Fpart_export%2Fartera_turbo.pm;h=c006db9cdb78cc804fadbf2d98b0741803e9b18b;hb=ea3ce8d7f076e7fecff4be7ae63bc413adb0adf5;hp=68910ed75f391e9ad51694aac231e29467a5615f;hpb=e438cf154c913221a998464a45a3388584d0cefb;p=freeside.git
diff --git a/FS/FS/part_export/artera_turbo.pm b/FS/FS/part_export/artera_turbo.pm
index 68910ed75..c006db9cd 100644
--- a/FS/FS/part_export/artera_turbo.pm
+++ b/FS/FS/part_export/artera_turbo.pm
@@ -43,7 +43,7 @@ Reseller API. Requires installation of
Net::Artera
from CPAN. You probably also want to:
- - In the configuraiton UI section: set the svc_external-skip_manual and svc_external-display_type configuration values.
+
- In the configuration UI section: set the svc_external-skip_manual and svc_external-display_type configuration values.
- In the message catalog: set svc_external-id to Artera Serial Number and set svc_external-title to Artera Key Code.
END
@@ -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( substr('0000000000'.uc($result->{'AKC'}), -10) );
$new->replace($svc_external);
} else {
$result->{'message'} || 'No response from Artera';
@@ -169,7 +169,7 @@ sub statusChange {
my $result = $artera->statusChange(
'asn' => sprintf('%010d', $id),
- 'akc' => sprintf('%010x', hex($title)),
+ 'akc' => substr("0000000000$title", -10),
'statusid' => $status,
);