freeside/FS/FS/part_export artera_turbo.pm,1.1,1.2
ivan
ivan at pouncequick.420.am
Sun Oct 17 02:19:27 PDT 2004
Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory pouncequick:/tmp/cvs-serv21399/FS/FS/part_export
Modified Files:
artera_turbo.pm
Log Message:
add options to adjust UI for artera turbo as svc_export
Index: artera_turbo.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/artera_turbo.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- artera_turbo.pm 16 Oct 2004 10:15:00 -0000 1.1
+++ artera_turbo.pm 17 Oct 2004 09:19:23 -0000 1.2
@@ -34,7 +34,11 @@
Real-time export to <a href="http://www.arteraturbo.com/">Artera Turbo</a>
Reseller API. Requires installation of
<a href="http://search.cpan.org/dist/Net-Artera">Net::Artera</a>
-from CPAN.
+from CPAN. You probably also want to:
+<UL>
+ <LI>In the configuraiton UI section: set the <B>svc_external-skip_manual</B> and <B>svc_external-display_type</B> configuration values.
+ <LI>In the message catalog: set <B>svc_external-id</B> to <I>Artera Serial Number</I> and set <B>svc_external-title</B> to <I>Artera Key Code</I>.
+</UL>
END
);
@@ -100,11 +104,10 @@
sub _export_replace {
my( $self, $new, $old ) = (shift, shift, shift);
- #except the first time, hehe..
- #return "can't change serial number with Artera"
- # if $old->id != $new->id;
- #return "can't change key code with Artera"
- # if $old->title ne $new->title;
+ return "can't change serial number with Artera"
+ if $old->id != $new->id && $old->id;
+ return "can't change key code with Artera"
+ if $old->title ne $new->title && $old->title;
'';
}
More information about the freeside-commits
mailing list