summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2018-04-10 17:54:50 -0700
committerIvan Kohler <ivan@freeside.biz>2018-04-10 17:54:50 -0700
commitf230d3b83c6d970bbd99f6dda167895e4271fbf0 (patch)
tree14d3a5ab251154a4b0ce22b5bc7443251996dfc1
parent37a3b713fa7015629f920e01ad16f4957d5aa085 (diff)
rendering time with lots of locations, RT#80177
-rw-r--r--FS/FS/Template_Mixin.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm
index e5a449aa7..30b044439 100644
--- a/FS/FS/Template_Mixin.pm
+++ b/FS/FS/Template_Mixin.pm
@@ -3277,6 +3277,8 @@ sub _items_cust_bill_pkg {
my $cust_main = $self->cust_main;#for per-agent cust_bill-line_item-ate_style
+ my $agentnum = $self->agentnum;
+
# for location labels: use default location on the invoice date
my $default_locationnum;
if ( $conf->exists('invoice-all_pkg_addresses') ) {
@@ -3473,7 +3475,7 @@ sub _items_cust_bill_pkg {
|| $cust_bill_pkg->recur_show_zero;
$description .= $cust_bill_pkg->time_period_pretty( $part_pkg,
- $self->agentnum )
+ $agentnum )
if $part_pkg->is_prepaid #for prepaid, "display the validity period
# triggered by the recurring charge freq
# (RT#26274)
@@ -3564,10 +3566,8 @@ sub _items_cust_bill_pkg {
$description = $self->mt('Usage charges');
}
- my $part_pkg = $cust_pkg->part_pkg;
-
$description .= $cust_bill_pkg->time_period_pretty( $part_pkg,
- $self->agentnum );
+ $agentnum );
my @d = ();
my @seconds = (); # for display of usage info