summaryrefslogtreecommitdiff
path: root/FS/FS/part_pkg/bulk_Common.pm
diff options
context:
space:
mode:
Diffstat (limited to 'FS/FS/part_pkg/bulk_Common.pm')
-rw-r--r--FS/FS/part_pkg/bulk_Common.pm9
1 files changed, 6 insertions, 3 deletions
diff --git a/FS/FS/part_pkg/bulk_Common.pm b/FS/FS/part_pkg/bulk_Common.pm
index 26550df70..2ee25488b 100644
--- a/FS/FS/part_pkg/bulk_Common.pm
+++ b/FS/FS/part_pkg/bulk_Common.pm
@@ -106,10 +106,13 @@ sub calc_recur {
}
}
- sprintf('%.2f', $self->base_recur($cust_pkg, $sdate) + $total_svc_charge );
-}
+ my $charge = $self->base_recur($cust_pkg, $sdate) + $total_svc_charge;
+
+ $param->{'override_charges'} = $total_svc_charge / $self->freq;
+ my $discount = $self->calc_discount($cust_pkg, $sdate, $details, $param);
-sub can_discount { 0; }
+ sprintf('%.2f', $charge - $discount );
+}
sub hide_svc_detail { 1; }