freeside/FS/FS/part_export artera_turbo.pm,1.9,1.10

ivan ivan at pouncequick.420.am
Thu Jan 6 11:02:37 PST 2005


Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory pouncequick:/tmp/cvs-serv5818

Modified Files:
	artera_turbo.pm 
Log Message:
add enable_edit flag so serials and key codes can be edited locally

Index: artera_turbo.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/artera_turbo.pm,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- artera_turbo.pm	5 Jan 2005 19:29:11 -0000	1.9
+++ artera_turbo.pm	6 Jan 2005 19:02:31 -0000	1.10
@@ -25,6 +25,9 @@
   '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_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"




More information about the freeside-commits mailing list