diff options
author | Mark Wells <mark@freeside.biz> | 2015-10-23 12:03:24 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-10-23 12:03:44 -0700 |
commit | 275239995f6b9888e470e4128287fba4d56df790 (patch) | |
tree | e6a3829999913b97d9e7d9cc992429c6d242ca0d /httemplate/browse/part_pkg.cgi | |
parent | 05959a9336936ec1d6e0ad8641a47d2f8dd515cf (diff) |
allow a default rate detail for each CDR type, #38633
Diffstat (limited to 'httemplate/browse/part_pkg.cgi')
-rwxr-xr-x | httemplate/browse/part_pkg.cgi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/httemplate/browse/part_pkg.cgi b/httemplate/browse/part_pkg.cgi index 11eca6702..376799582 100755 --- a/httemplate/browse/part_pkg.cgi +++ b/httemplate/browse/part_pkg.cgi @@ -88,6 +88,14 @@ if ( $cgi->param('missing_recur_fee') ) { )"; } +if ( $cgi->param('ratenum') =~ /^(\d+)$/ ) { + push @where, "EXISTS( SELECT 1 FROM part_pkg_option + WHERE optionname LIKE '%ratenum' + AND optionvalue = '$1' + AND part_pkg_option.pkgpart = part_pkg.pkgpart + )"; +} + if ( $cgi->param('family') =~ /^(\d+)$/ ) { $family_pkgpart = $1; push @where, "family_pkgpart = $1"; |