diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2014-08-09 15:19:27 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2014-08-09 15:19:27 -0700 |
| commit | f9930edeaceb217a6503fa49078fcff2b588caf8 (patch) | |
| tree | b7627bbada0c78d2f8c9317201db215b60932484 /httemplate/view/cust_main/packages/package.html | |
| parent | de7167ac01e77d08f1fdd05ba229eb87b2c67e6d (diff) | |
optimizations for large package lists, RT#28526
Diffstat (limited to 'httemplate/view/cust_main/packages/package.html')
| -rw-r--r-- | httemplate/view/cust_main/packages/package.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/httemplate/view/cust_main/packages/package.html b/httemplate/view/cust_main/packages/package.html index 9f6169c1e..cf5c98a1c 100644 --- a/httemplate/view/cust_main/packages/package.html +++ b/httemplate/view/cust_main/packages/package.html @@ -76,7 +76,9 @@ % if ( $curuser->access_right('Discount customer package') % && $part_pkg->can_discount % && ! scalar( @{ $cust_pkg->{_cust_pkg_discount_active} } ) -% && ! scalar($cust_pkg->part_pkg->part_pkg_discount) +% && ( ! $opt{'term_discounts'} +% || ! scalar($cust_pkg->part_pkg->part_pkg_discount) +% ) % ) % { % $br=1; @@ -94,7 +96,7 @@ % if ( ( $curuser->access_right('Billing event reports') % || $curuser->access_right('View customer billing events') % ) -% && $cust_pkg->num_cust_event +% && $cust_pkg->exists_cust_event % ) { ( <%pkg_event_link($cust_pkg)%> ) % } |
