projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c836e10
)
add enable_edit flag so serials and key codes can be edited locally
author
ivan
<ivan>
Thu, 6 Jan 2005 19:02:31 +0000
(19:02 +0000)
committer
ivan
<ivan>
Thu, 6 Jan 2005 19:02:31 +0000
(19:02 +0000)
FS/FS/part_export/artera_turbo.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_export/artera_turbo.pm
b/FS/FS/part_export/artera_turbo.pm
index
8e2ed85
..
68910ed
100644
(file)
--- 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',
},
'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 = (
;
%info = (
@@
-110,6
+113,7
@@
sub _export_insert {
sub _export_replace {
my( $self, $new, $old ) = (shift, shift, shift);
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"
return "can't change serial number with Artera"
if $old->id != $new->id && $old->id;
return "can't change key code with Artera"