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:38 -0700 |
commit | eb8176675b99422a309534808e38d51571228cfe (patch) | |
tree | 241becf8dc0cc0e1791ff018eb074a65235c8e5d /httemplate/browse/part_pkg.cgi | |
parent | e8a7a756aa97a62dec29cdbdc24e6bb3c15aa5ee (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 07f104e55..1e8b51030 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"; |