X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_pkg%2Fvoip_inbound.pm;h=5bce1e123e3e27b465b35393b2b3b70bbd8c0214;hb=b43dc5871854ed8662f75f5ee00229bd761bedd4;hp=811329d9f283061e792ec86abe3c44c248f32433;hpb=2a95a4cd4d79dcf1450e8ff3ee63b82c1416cc8d;p=freeside.git diff --git a/FS/FS/part_pkg/voip_inbound.pm b/FS/FS/part_pkg/voip_inbound.pm index 811329d9f..5bce1e123 100644 --- a/FS/FS/part_pkg/voip_inbound.pm +++ b/FS/FS/part_pkg/voip_inbound.pm @@ -214,11 +214,16 @@ sub calc_usage { # my $downstream_cdr = ''; my $included_min = $self->option('min_included', 1) || 0; + $included_min *= ($cust_pkg->quantity || 1); my $use_duration = $self->option('use_duration'); my $output_format = $self->option('output_format', 1) || 'default'; my $formatter = - FS::detail_format->new($output_format, buffer => $details, inbound => 1); + FS::detail_format->new($output_format, + buffer => $details, + inbound => 1, + locale => $cust_pkg->cust_main->locale + ); my $granularity = length($self->option('sec_granularity')) ? $self->option('sec_granularity') @@ -399,6 +404,7 @@ sub is_free { # This equates svc_phone records; perhaps svc_phone should have a field # to indicate it represents a line +# #XXX no count_available_phones? sub calc_units { my($self, $cust_pkg ) = @_; my $count =