summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-part_pkg.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-03-04 11:35:52 -0800
committerIvan Kohler <ivan@freeside.biz>2016-03-04 11:35:52 -0800
commitf21e3fcff8667f90efcb262e4290937212a21e95 (patch)
tree63adbb95d3003f518744382d162c28a5b9eccad6 /httemplate/elements/select-part_pkg.html
parente75e33aecdc0a432e57d6dd6278a361e0d3bd950 (diff)
optimize package list on order new package, RT#39822
Diffstat (limited to 'httemplate/elements/select-part_pkg.html')
-rw-r--r--httemplate/elements/select-part_pkg.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/httemplate/elements/select-part_pkg.html b/httemplate/elements/select-part_pkg.html
index 237d7df0a..22a24bed4 100644
--- a/httemplate/elements/select-part_pkg.html
+++ b/httemplate/elements/select-part_pkg.html
@@ -43,6 +43,11 @@ if ( exists($opt{'classnum'}) && defined($opt{'classnum'}) ) {
} #else -1 or not specified, all classes, so don't set classnum
}
+$opt{'select'} = 'part_pkg.*, setup_option.optionvalue AS _setup_fee,
+ recur_option.optionvalue AS _recur_fee'
+ unless $opt{'select'};
+$opt{'addl_from'} .= FS::part_pkg->join_options_sql;
+
$opt{'extra_sql'} .= ( keys(%hash) ? ' AND ' : ' WHERE ' ).
FS::part_pkg->curuser_pkgs_sql;