fix 'Can't call method "setup" on an undefined value' error when using into rates...
[freeside.git] / FS / FS / part_pkg_discount.pm
index 2187e10..06a0fb9 100644 (file)
@@ -112,7 +112,7 @@ Returns the discount associated with this part_pkg_discount.
 
 sub discount {
   my $self = shift;
-  qsearch('discount', { 'discountnum' => $self->discountnum });
+  qsearchs('discount', { 'discountnum' => $self->discountnum });
 }
 
 =back