[freeside-commits] branch FREESIDE_4_BRANCH updated. ab3b37440f49d02aff0136a128cb8a82208995dd
Ivan Kohler
ivan at freeside.biz
Tue Apr 10 17:54:48 PDT 2018
The branch, FREESIDE_4_BRANCH has been updated
via ab3b37440f49d02aff0136a128cb8a82208995dd (commit)
from d77758b525a427835c119cd534cd1c1f21117c49 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit ab3b37440f49d02aff0136a128cb8a82208995dd
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue Apr 10 17:54:47 2018 -0700
rendering time with lots of locations, RT#80177
diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm
index 14e52c5b6..ab835de04 100644
--- a/FS/FS/Template_Mixin.pm
+++ b/FS/FS/Template_Mixin.pm
@@ -3287,6 +3287,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') ) {
@@ -3436,7 +3438,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)
@@ -3528,10 +3530,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
-----------------------------------------------------------------------
Summary of changes:
FS/FS/Template_Mixin.pm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
More information about the freeside-commits
mailing list