cust_svc::ignore_quantity hack applies to services not in package too
authorIvan Kohler <ivan@freeside.biz>
Tue, 7 Aug 2012 23:07:51 +0000 (16:07 -0700)
committerIvan Kohler <ivan@freeside.biz>
Tue, 7 Aug 2012 23:07:51 +0000 (16:07 -0700)
FS/FS/cust_svc.pm

index acd2fcd..5206931 100644 (file)
@@ -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;