summaryrefslogtreecommitdiff
path: root/FS/FS
diff options
context:
space:
mode:
authorivan <ivan>2005-01-06 19:02:31 +0000
committerivan <ivan>2005-01-06 19:02:31 +0000
commite438cf154c913221a998464a45a3388584d0cefb (patch)
tree59c8233a2542bce8b559cbc8a020373369c71612 /FS/FS
parentc836e10e2ba51bf5f0e1671484db367248218a0c (diff)
add enable_edit flag so serials and key codes can be edited locally
Diffstat (limited to 'FS/FS')
-rw-r--r--FS/FS/part_export/artera_turbo.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/FS/FS/part_export/artera_turbo.pm b/FS/FS/part_export/artera_turbo.pm
index 8e2ed85..68910ed 100644
--- a/FS/FS/part_export/artera_turbo.pm
+++ b/FS/FS/part_export/artera_turbo.pm
@@ -25,6 +25,9 @@ tie my %options, 'Tie::IxHash',
'debug' => { 'label' => 'Enable debug logging',
'type' => 'checkbox',
},
+ 'enable_edit' => { 'label' => 'Enable local editing of Artera serial numbers and key codes (note that the changes will NOT be exported to Artera)',
+ 'type' => 'checkbox',
+ },
;
%info = (
@@ -110,6 +113,7 @@ sub _export_insert {
sub _export_replace {
my( $self, $new, $old ) = (shift, shift, shift);
+ return '' if $self->option('enable_edit');
return "can't change serial number with Artera"
if $old->id != $new->id && $old->id;
return "can't change key code with Artera"