diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2013-05-14 19:59:38 -0700 | 
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2013-05-14 19:59:38 -0700 | 
| commit | a082dc9deaaaf138bda355c594a470d08edf6e9e (patch) | |
| tree | 32da01bbddf3a063d192fc5de7fec9c660d3e786 | |
| parent | 59d2b76f21d930235e7cde6822be8d338a26b777 (diff) | |
fix bulk (during billing period) billing error if services are provisioned first, RT#22923
| -rw-r--r-- | FS/FS/part_pkg/bulk.pm | 3 | 
1 files changed, 3 insertions, 0 deletions
| 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; | 
