freeside/FS/FS/part_export artera_turbo.pm,1.11,1.12
ivan
ivan at pouncequick.420.am
Thu Jan 6 12:20:28 PST 2005
Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory pouncequick:/tmp/cvs-serv10918/part_export
Modified Files:
artera_turbo.pm
Log Message:
just 0-pad the key codes, don't try fancy things with hex and sprintf
Index: artera_turbo.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/artera_turbo.pm,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- artera_turbo.pm 6 Jan 2005 19:48:08 -0000 1.11
+++ artera_turbo.pm 6 Jan 2005 20:20:24 -0000 1.12
@@ -104,7 +104,7 @@
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 +169,7 @@
my $result = $artera->statusChange(
'asn' => sprintf('%010d', $id),
- 'akc' => sprintf('%010x', hex($title)),
+ 'akc' => substr("0000000000$title", -10),
'statusid' => $status,
);
More information about the freeside-commits
mailing list