From a8f897874a93d7acfba75833de9c0629e076b752 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 18 Nov 2015 16:19:26 -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 b8062101e..dfe62fb84 100644 --- a/FS/FS/cust_pkg/Import.pm +++ b/FS/FS/cust_pkg/Import.pm @@ -209,6 +209,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.