X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=FS%2FFS%2Fpart_export%2Fartera_turbo.pm;fp=FS%2FFS%2Fpart_export%2Fartera_turbo.pm;h=52ab232e0bdfa6d843ac8ce5af64f05cb04510d3;hb=326123622b3e60db0d6893f076b3a082f4e2a44a;hp=60cafc34fdbe951045fe3d23bfdc5eeb64a6320e;hpb=dbc6a01ed6a3b4373b01bf985ca735386dd047d4;p=freeside.git
diff --git a/FS/FS/part_export/artera_turbo.pm b/FS/FS/part_export/artera_turbo.pm
index 60cafc34f..52ab232e0 100644
--- a/FS/FS/part_export/artera_turbo.pm
+++ b/FS/FS/part_export/artera_turbo.pm
@@ -34,7 +34,11 @@ tie my %options, 'Tie::IxHash',
Real-time export to Artera Turbo
Reseller API. Requires installation of
Net::Artera
-from CPAN.
+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 message catalog: set svc_external-id to Artera Serial Number and set svc_external-title to Artera Key Code.
+
END
);
@@ -100,11 +104,10 @@ sub _export_insert {
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;
'';
}