[freeside-commits] freeside/FS/FS/cust_pkg Import.pm, 1.2.2.2, 1.2.2.3

Ivan,,, ivan at wavetail.420.am
Sun Feb 20 17:21:47 PST 2011


Update of /home/cvs/cvsroot/freeside/FS/FS/cust_pkg
In directory wavetail.420.am:/tmp/cvs-serv12615/cust_pkg

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	Import.pm 
Log Message:
add agent_pkgid

Index: Import.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pkg/Import.pm,v
retrieving revision 1.2.2.2
retrieving revision 1.2.2.3
diff -u -w -d -r1.2.2.2 -r1.2.2.3
--- Import.pm	21 Jan 2011 09:40:41 -0000	1.2.2.2
+++ Import.pm	21 Feb 2011 01:21:44 -0000	1.2.2.3
@@ -170,8 +170,9 @@
   my $format = delete $opt->{'format'};
   my @fields = ();
 
-  if ( $format =~ /^(.*)-agent_custid$/ ) {
+  if ( $format =~ /^(.*)-agent_custid(-agent_pkgid)?$/ ) {
     $format = $1;
+    my $agent_pkgid = $2;
     @fields = (
       sub {
         my( $self, $value ) = @_; # $conf, $param
@@ -182,6 +183,7 @@
         $self->custnum($cust_main->custnum) if $cust_main;
       },
     );
+    push @fields, 'agent_pkgid' if $agent_pkgid;
   } else {
     @fields = ( 'custnum' );
   }



More information about the freeside-commits mailing list