diff options
author | mark <mark> | 2010-05-21 03:42:34 +0000 |
---|---|---|
committer | mark <mark> | 2010-05-21 03:42:34 +0000 |
commit | dfe3bf05cc94635ae1f9ca233e060acc21d0e487 (patch) | |
tree | 8bab6c3b555f2bae1099512abf3fbd05f3b637e0 /FS | |
parent | b540a4a1b7e6ae2e48b2c3b63fc1a5ad79cfe63e (diff) |
fix display bug, RT#8524
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/part_pkg/prorate.pm | 2 | ||||
-rw-r--r-- | FS/FS/part_pkg/voip_inbound.pm | 10 |
2 files changed, 2 insertions, 10 deletions
diff --git a/FS/FS/part_pkg/prorate.pm b/FS/FS/part_pkg/prorate.pm index 894666d2c..09561cf51 100644 --- a/FS/FS/part_pkg/prorate.pm +++ b/FS/FS/part_pkg/prorate.pm @@ -86,7 +86,7 @@ use FS::part_pkg::flat; }, }, 'fieldorder' => [ 'setup_fee', 'recur_fee', 'unused_credit', 'cutoff_day', - 'seconds', 'upbyte', 'downbytes', 'totalbytes', + 'seconds', 'upbytes', 'downbytes', 'totalbytes', 'recharge_amount', 'recharge_seconds', 'recharge_upbytes', 'recharge_downbytes', 'recharge_totalbytes', 'usage_rollover', 'recharge_reset', 'externalid', ], diff --git a/FS/FS/part_pkg/voip_inbound.pm b/FS/FS/part_pkg/voip_inbound.pm index 15291e31b..4937bb86b 100644 --- a/FS/FS/part_pkg/voip_inbound.pm +++ b/FS/FS/part_pkg/voip_inbound.pm @@ -163,7 +163,6 @@ tie my %granularity, 'Tie::IxHash', FS::rate_detail::granularities(); use_duration output_format usage_mandate summarize_usage usage_section bill_every_call - count_available_phones ) ], 'weight' => 40, @@ -366,15 +365,8 @@ sub is_free { # to indicate it represents a line sub calc_units { my($self, $cust_pkg ) = @_; - my $count = 0; - if ( $self->option('count_available_phones', 1)) { - map { $count += ( $_->quantity || 0 ) } - grep { $_->part_svc->svcdb eq 'svc_phone' } - $cust_pkg->part_pkg->pkg_svc; - } else { - $count = + my $count = scalar(grep { $_->part_svc->svcdb eq 'svc_phone' } $cust_pkg->cust_svc); - } $count; } |