[freeside-commits] branch master updated. 326bef027d6eaa521825f72ee26f10f087f71cf8

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


The branch, master has been updated
       via  326bef027d6eaa521825f72ee26f10f087f71cf8 (commit)
      from  1a67fad0119e58b139307d866d8c331d9f41f014 (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 326bef027d6eaa521825f72ee26f10f087f71cf8
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue May 14 19:59:35 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