[freeside-commits] branch master updated. cd6bb5eafb6c7df7ea3eb7b78226a0d9c4b572ed

Ivan ivan at 420.am
Tue Aug 7 15:51:39 PDT 2012


The branch, master has been updated
       via  cd6bb5eafb6c7df7ea3eb7b78226a0d9c4b572ed (commit)
      from  f5a3626fdc2ff793648cebc86f96bf3eac08cc65 (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 cd6bb5eafb6c7df7ea3eb7b78226a0d9c4b572ed
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Tue Aug 7 15:43:07 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 2ec8f12..acd2fcd 100644
--- a/FS/FS/cust_svc.pm
+++ b/FS/FS/cust_svc.pm
@@ -335,10 +335,10 @@ sub check {
     ($part_svc) = grep { $_->svcpart == $self->svcpart } $cust_pkg->part_svc;
     return "No svcpart ". $self->svcpart.
            " services in pkgpart ". $cust_pkg->pkgpart
-      unless $part_svc;
+      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 $part_svc->get('num_avail') <= 0 and !$ignore_quantity;
   }
 
   $self->SUPER::check;

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

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




More information about the freeside-commits mailing list