[freeside-commits] branch FREESIDE_3_BRANCH updated. 6fb1cac1d2cdadbc469438b5399875a915b5d81b

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


The branch, FREESIDE_3_BRANCH has been updated
       via  6fb1cac1d2cdadbc469438b5399875a915b5d81b (commit)
      from  68607ca761342d39b0f7988c9a73ab2ba5d6a3ea (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 6fb1cac1d2cdadbc469438b5399875a915b5d81b
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue May 14 19:59:36 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