diff options
author | Mark Wells <mark@freeside.biz> | 2014-06-03 16:59:41 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2014-06-03 16:59:41 -0700 |
commit | c2f7d8ba623194ad1fae37b231b2e29b33d05674 (patch) | |
tree | eee828a3caf93b7b21d8c8d256c58c9c04bd358a /FS/FS/part_pkg | |
parent | b86687a90410fb7147c172b0a2f8581fb1b9e64e (diff) |
changes to support new invoice template features, #28080
Diffstat (limited to 'FS/FS/part_pkg')
-rw-r--r-- | FS/FS/part_pkg/voip_cdr.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/FS/FS/part_pkg/voip_cdr.pm b/FS/FS/part_pkg/voip_cdr.pm index b8f1eee03..d3eff355f 100644 --- a/FS/FS/part_pkg/voip_cdr.pm +++ b/FS/FS/part_pkg/voip_cdr.pm @@ -465,6 +465,15 @@ sub calc_usage { #my @invoice_details_sort; + # for tagging invoice details + my $phonenum; + if ( $svc_table eq 'svc_phone' ) { + $phonenum = $svc_x->phonenum; + } elsif ( $svc_table eq 'svc_pbx' ) { + $phonenum = $svc_x->title; + } + $formatter->phonenum($phonenum); + #first rate any outstanding CDRs not yet rated # XXX eventually use an FS::Cursor for this my $cdr_search = $svc_x->psearch_cdrs(%options); |