X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fartera_turbo.pm;h=52ab232e0bdfa6d843ac8ce5af64f05cb04510d3;hp=60cafc34fdbe951045fe3d23bfdc5eeb64a6320e;hb=326123622b3e60db0d6893f076b3a082f4e2a44a;hpb=dbc6a01ed6a3b4373b01bf985ca735386dd047d4 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: + 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; ''; }