summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-02-11 05:39:48 -0800
committerIvan Kohler <ivan@freeside.biz>2016-02-11 05:39:48 -0800
commit117659ee02ba32bf59335bf18faa7a075f231709 (patch)
tree7402c232557eb032897fa41613fee4c721c8345e /httemplate
parent95e4856fce90f6549822707c1dd28bdcbec5f540 (diff)
fix advanced package report, RT#40292, fallout from RT#20173
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/search/cust_main.cgi1
-rwxr-xr-xhttemplate/search/cust_pkg.cgi2
2 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/search/cust_main.cgi b/httemplate/search/cust_main.cgi
index 7bcd5bfcd..38ec4f453 100755
--- a/httemplate/search/cust_main.cgi
+++ b/httemplate/search/cust_main.cgi
@@ -518,6 +518,7 @@ my $addl_from = qq{
AND recur_option.optionname = 'recur_fee' )
};
+local($FS::cust_pkg::cache_enabled) = 1; #for $cust_pkg->part_pkg
my %all_pkgs = map { $_->custnum =>
[ $_->$pkgs_method({ select => $select,
addl_from => $addl_from,
diff --git a/httemplate/search/cust_pkg.cgi b/httemplate/search/cust_pkg.cgi
index f1e686a83..dbd346dba 100755
--- a/httemplate/search/cust_pkg.cgi
+++ b/httemplate/search/cust_pkg.cgi
@@ -44,7 +44,7 @@
},
sub { my $c = shift;
sprintf( $money_char.'%.2f',
- $c->part_pkg->base_recur($c)
+ $c->base_recur
);
},
sub { FS::part_pkg::freq_pretty(shift); },