summaryrefslogtreecommitdiff
path: root/FS/FS/cust_main/Packages.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2013-04-04 15:46:25 -0700
committerMark Wells <mark@freeside.biz>2013-04-04 15:46:25 -0700
commit72980e7f1077ba3fc8573a095fa77e505f101a82 (patch)
treee3cbbc63f3a14364b24e283a2a8faa60ca2ad02b /FS/FS/cust_main/Packages.pm
parentb76f78eed096a15249722731a2823613bf87331e (diff)
allow location change when the package definition has been disabled, #22365, #940
Diffstat (limited to 'FS/FS/cust_main/Packages.pm')
-rw-r--r--FS/FS/cust_main/Packages.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/cust_main/Packages.pm b/FS/FS/cust_main/Packages.pm
index a3809f6..29e3bec 100644
--- a/FS/FS/cust_main/Packages.pm
+++ b/FS/FS/cust_main/Packages.pm
@@ -87,7 +87,7 @@ sub order_pkg {
if exists($opt->{'depend_jobnum'}) && $opt->{'depend_jobnum'};
my %insert_params = map { $opt->{$_} ? ( $_ => $opt->{$_} ) : () }
- qw( ticket_subject ticket_queue );
+ qw( ticket_subject ticket_queue allow_pkgpart );
local $SIG{HUP} = 'IGNORE';
local $SIG{INT} = 'IGNORE';
@@ -173,6 +173,7 @@ sub order_pkg {
'refnum' => $cust_pkg->refnum,
'discountnum' => $cust_pkg->discountnum,
'waive_setup' => $cust_pkg->waive_setup,
+ 'allow_pkgpart' => $opt->{'allow_pkgpart'},
});
$error = $self->order_pkg('cust_pkg' => $pkg);
if ( $error ) {