projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add latitude/longitude to prospects, customers and package locations, RT#15539
[freeside.git]
/
FS
/
FS
/
cust_pkg
/
Import.pm
diff --git
a/FS/FS/cust_pkg/Import.pm
b/FS/FS/cust_pkg/Import.pm
index
9c93677
..
fe69f82
100644
(file)
--- a/
FS/FS/cust_pkg/Import.pm
+++ b/
FS/FS/cust_pkg/Import.pm
@@
-170,8
+170,9
@@
sub batch_import {
my $format = delete $opt->{'format'};
my @fields = ();
my $format = delete $opt->{'format'};
my @fields = ();
- if ( $format =~ /^(.*)-agent_custid$/ ) {
+ if ( $format =~ /^(.*)-agent_custid
(-agent_pkgid)?
$/ ) {
$format = $1;
$format = $1;
+ my $agent_pkgid = $2;
@fields = (
sub {
my( $self, $value ) = @_; # $conf, $param
@fields = (
sub {
my( $self, $value ) = @_; # $conf, $param
@@
-182,6
+183,7
@@
sub batch_import {
$self->custnum($cust_main->custnum) if $cust_main;
},
);
$self->custnum($cust_main->custnum) if $cust_main;
},
);
+ push @fields, 'agent_pkgid' if $agent_pkgid;
} else {
@fields = ( 'custnum' );
}
} else {
@fields = ( 'custnum' );
}