projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd6bb5e
)
cust_svc::ignore_quantity hack applies to services not in package too
author
Ivan Kohler
<ivan@freeside.biz>
Tue, 7 Aug 2012 23:07:51 +0000
(16:07 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Tue, 7 Aug 2012 23:07:51 +0000
(16:07 -0700)
FS/FS/cust_svc.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_svc.pm
b/FS/FS/cust_svc.pm
index
acd2fcd
..
5206931
100644
(file)
--- 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;