diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-11-18 16:19:25 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-11-18 16:19:25 -0800 |
commit | 74cd77ff209b2ce296788e29ea7484818122dcba (patch) | |
tree | d7b6c49e210d61148ca202959979cbe46fa7047c /FS/FS/cust_pkg | |
parent | ded0cb9e764cd806a13aaf6ddb8cdfe0f3215999 (diff) |
package import w/locationnum, RT#38764
Diffstat (limited to 'FS/FS/cust_pkg')
-rw-r--r-- | FS/FS/cust_pkg/Import.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/FS/FS/cust_pkg/Import.pm b/FS/FS/cust_pkg/Import.pm index 301930c..e8c4427 100644 --- a/FS/FS/cust_pkg/Import.pm +++ b/FS/FS/cust_pkg/Import.pm @@ -206,6 +206,11 @@ sub batch_import { @fields = ( 'custnum' ); } + if ( $format =~ /^(.*)-locationnum$/ ) { + $format = $1; + push @fields, 'locationnum'; + } + push @fields, ( 'pkgpart', 'discountnum' ); my @date_fields = (); |