fix for bug noticed by Martin G. Bayerle:
authorivan <ivan>
Fri, 20 Aug 1999 08:27:06 +0000 (08:27 +0000)
committerivan <ivan>
Fri, 20 Aug 1999 08:27:06 +0000 (08:27 +0000)
> if you eliminate services from any package, to reduce it to only one service,
> once gone, they won't reappear.

FS/FS/part_pkg.pm
README

index 863e962..d262a04 100644 (file)
@@ -134,13 +134,13 @@ sub check {
 =item pkg_svc
 
 Returns all FS::pkg_svc objects (see L<FS::pkg_svc>) for this package
-definition.
+definition (with non-zero quantity).
 
 =cut
 
 sub pkg_svc {
   my $self = shift;
-  qsearch( 'pkg_svc', { 'pkgpart' => $self->pkgpart } );
+  grep { $_->quantity } qsearch( 'pkg_svc', { 'pkgpart' => $self->pkgpart } );
 }
 
 =item svcpart [ SVCDB ]
@@ -166,7 +166,7 @@ sub svcpart {
 
 =head1 VERSION
 
-$Id: part_pkg.pm,v 1.1 1999-08-04 09:03:53 ivan Exp $
+$Id: part_pkg.pm,v 1.2 1999-08-20 08:27:06 ivan Exp $
 
 =head1 BUGS
 
diff --git a/README b/README
index 0c6640f..496d3b9 100644 (file)
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-Freeside, (pre-1.2.2 or pre.1.3.0?)
+Freeside, 1.2.2
 
 Copyright (C) 1999 Ivan Kohler
 Copyright (C) 1999 Silicon Interactive Software Design