From: Ivan Kohler Date: Tue, 7 Aug 2012 23:07:51 +0000 (-0700) Subject: cust_svc::ignore_quantity hack applies to services not in package too X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=2ec6f6df3efd366cb3c3532714dfc93bfa6dcef9 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 acd2fcdb7..52069316d 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;