[freeside-commits] branch master updated. 2ec6f6df3efd366cb3c3532714dfc93bfa6dcef9

Ivan ivan at 420.am
Tue Aug 7 16:07:54 PDT 2012


The branch, master has been updated
       via  2ec6f6df3efd366cb3c3532714dfc93bfa6dcef9 (commit)
      from  cd6bb5eafb6c7df7ea3eb7b78226a0d9c4b572ed (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 2ec6f6df3efd366cb3c3532714dfc93bfa6dcef9
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Aug 7 16:07:51 2012 -0700

    cust_svc::ignore_quantity hack applies to services not in package too

diff --git a/FS/FS/cust_svc.pm b/FS/FS/cust_svc.pm
index acd2fcd..5206931 100644
--- a/FS/FS/cust_svc.pm
+++ b/FS/FS/cust_svc.pm
@@ -338,7 +338,7 @@ sub check {
       unless $part_svc || $ignore_quantity;
     return "Already ". $part_svc->get('num_cust_svc'). " ". $part_svc->svc.
            " services for pkgnum ". $self->pkgnum
-      if $part_svc->get('num_avail') <= 0 and !$ignore_quantity;
+      if !$ignore_quantity && $part_svc->get('num_avail') <= 0 ;
   }
 
   $self->SUPER::check;

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

Summary of changes:
 FS/FS/cust_svc.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)




More information about the freeside-commits mailing list