X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_pkg.pm;h=a4256ea1f582c9de26fdbb2801b9689ace8d3f4e;hb=99230201dec5366bf58b33b29fb2f7ab4724b764;hp=b7633c1966132138f0296f96d69512d36f00cb05;hpb=6fa9f6fe4cd0b090ea1f0b6236a00241070d0bdc;p=freeside.git diff --git a/FS/FS/cust_pkg.pm b/FS/FS/cust_pkg.pm index b7633c196..a4256ea1f 100644 --- a/FS/FS/cust_pkg.pm +++ b/FS/FS/cust_pkg.pm @@ -145,7 +145,7 @@ sub insert { my $agent = qsearchs( 'agent', { 'agentnum' => $cust_main->agentnum } ); my $pkgpart_href = $agent->pkgpart_hashref; return "agent ". $agent->agentnum. " can't purchase pkgpart ". $self->pkgpart - unless $pkgpart_href->{ $self->{pkgpart} }; + unless $pkgpart_href->{ $self->pkgpart }; $self->SUPER::insert; @@ -225,7 +225,7 @@ sub check { return "Unknown customer ". $self->custnum unless $self->cust_main; } - return "Unknown pkgpart" + return "Unknown pkgpart: ". $self->pkgpart unless qsearchs( 'part_pkg', { 'pkgpart' => $self->pkgpart } ); $self->otaker(getotaker) unless $self->otaker; @@ -701,7 +701,7 @@ sub order { =head1 VERSION -$Id: cust_pkg.pm,v 1.19 2002-04-22 20:47:21 ivan Exp $ +$Id: cust_pkg.pm,v 1.21 2002-05-04 00:47:24 ivan Exp $ =head1 BUGS