[freeside-commits] branch FREESIDE_2_3_BRANCH updated. a082dc9deaaaf138bda355c594a470d08edf6e9e

Ivan ivan at 420.am
Tue May 14 19:59:39 PDT 2013


The branch, FREESIDE_2_3_BRANCH has been updated
       via  a082dc9deaaaf138bda355c594a470d08edf6e9e (commit)
      from  59d2b76f21d930235e7cde6822be8d338a26b777 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a082dc9deaaaf138bda355c594a470d08edf6e9e
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue May 14 19:59:38 2013 -0700

    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 fd96f8b..4a55858 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;

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/part_pkg/bulk.pm |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)




More information about the freeside-commits mailing list