From a1183aad7a409d1212c7e3cdb4a9f02e93578d31 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 2 Jul 2013 19:52:06 -0700 Subject: [PATCH] rt time price plan doesn't pick up all RT time; better to not have it available at all than underbill --- FS/FS/part_pkg/{ => incomplete}/rt_time.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename FS/FS/part_pkg/{ => incomplete}/rt_time.pm (96%) diff --git a/FS/FS/part_pkg/rt_time.pm b/FS/FS/part_pkg/incomplete/rt_time.pm similarity index 96% rename from FS/FS/part_pkg/rt_time.pm rename to FS/FS/part_pkg/incomplete/rt_time.pm index 11b7ee85c..f96eba628 100644 --- a/FS/FS/part_pkg/rt_time.pm +++ b/FS/FS/part_pkg/incomplete/rt_time.pm @@ -44,7 +44,7 @@ sub calc_recur { my $charges = 0; $charges += $self->calc_usage(@_); - $charges += $self->calc_recur_Common(@_); + $charges += ($cust_pkg->quantity || 1) * $self->calc_recur_Common(@_); $charges; -- 2.11.0