[freeside-commits] freeside/FS/FS/cust_pkg Import.pm,1.4,1.5

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


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

Modified Files:
	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.4
retrieving revision 1.5
diff -u -w -d -r1.4 -r1.5
--- Import.pm	21 Jan 2011 09:40:40 -0000	1.4
+++ Import.pm	21 Feb 2011 01:21:17 -0000	1.5
@@ -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