X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fartera_turbo.pm;h=e22bbf2af2b7ab134d590290119d96169ab8b940;hb=66006d4fd95324b9148c95fc3dcef1ced8096b5a;hp=2fde0d11770ac5edfe124b6b013d5b8632ea7442;hpb=b5f5f30af1a68a03eae894753bdbd7c66a122670;p=freeside.git
diff --git a/FS/FS/part_export/artera_turbo.pm b/FS/FS/part_export/artera_turbo.pm
index 2fde0d117..e22bbf2af 100644
--- a/FS/FS/part_export/artera_turbo.pm
+++ b/FS/FS/part_export/artera_turbo.pm
@@ -37,13 +37,14 @@ tie my %options, 'Tie::IxHash',
'Real-time export to Artera Turbo Reseller API',
'options' => \%options,
#'nodomain' => 'Y',
+ 'no_machine' => 1,
'notes' => <<'END'
Real-time export to Artera Turbo
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 +105,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(uc(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 +170,7 @@ sub statusChange {
my $result = $artera->statusChange(
'asn' => sprintf('%010d', $id),
- 'akc' => sprintf('%010x', hex($title)),
+ 'akc' => substr("0000000000$title", -10),
'statusid' => $status,
);