Creates a new service. To add the refund to the database, see L<"insert">.
Services are normally created by creating FS::svc_ objects (see
-L<FS::svc_acct>, L<FS::svc_domain>, and L<FS::svc_acct_sm>, among others).
+L<FS::svc_acct>, L<FS::svc_domain>, and L<FS::svc_forward>, among others).
=cut
my $self = shift;
my $part_svc = qsearchs( 'part_svc', { 'svcpart' => $self->svcpart } );
my $svcdb = $part_svc->svcdb;
- my $svc_x = qsearchs( $svcdb, { 'svcnum' => $self->svcnum } );
+ my $svc_x = qsearchs( $svcdb, { 'svcnum' => $self->svcnum } )
+ or die "can't find $svcdb.svcnum ". $self->svcnum;
my $svc = $part_svc->svc;
my $tag;
if ( $svcdb eq 'svc_acct' ) {
=head1 VERSION
-$Id: cust_svc.pm,v 1.3 2001-08-20 11:18:20 ivan Exp $
+$Id: cust_svc.pm,v 1.5 2001-09-03 22:07:38 ivan Exp $
=head1 BUGS