From 5f9f20112eeb53f578900e9e2d43e1e15a6fd96d Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 18 Nov 2015 16:19:24 -0800 Subject: [PATCH] package import w/locationnum, RT#38764 --- FS/FS/cust_pkg/Import.pm | 5 +++++ httemplate/misc/cust_pkg-import.html | 22 ++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/FS/FS/cust_pkg/Import.pm b/FS/FS/cust_pkg/Import.pm index 301930cba..e8c4427d6 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 = (); diff --git a/httemplate/misc/cust_pkg-import.html b/httemplate/misc/cust_pkg-import.html index c1c1b8b1d..8784dbbe1 100644 --- a/httemplate/misc/cust_pkg-import.html +++ b/httemplate/misc/cust_pkg-import.html @@ -29,14 +29,19 @@ Import a file containing customer packages.