From: Ivan Kohler Date: Wed, 15 May 2013 02:59:35 +0000 (-0700) Subject: fix bulk (during billing period) billing error if services are provisioned first... X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=326bef027d6eaa521825f72ee26f10f087f71cf8 fix bulk (during billing period) billing error if services are provisioned first, RT#22923 --- diff --git a/FS/FS/part_pkg/bulk.pm b/FS/FS/part_pkg/bulk.pm index fd96f8bc2..4a55858de 100644 --- a/FS/FS/part_pkg/bulk.pm +++ b/FS/FS/part_pkg/bulk.pm @@ -44,6 +44,9 @@ sub _bulk_recur { if $self->option('no_prorate',1); my $last_bill = $cust_pkg->last_bill; + + return (0, '') if $$sdate == $last_bill; + my $svc_start = max( $h_cust_svc->date_inserted, $last_bill); my $svc_end = $h_cust_svc->date_deleted; $svc_end = ( !$svc_end || $svc_end > $$sdate ) ? $$sdate : $svc_end;