1 package FS::svc_acct_pop;
5 use FS::Record qw( qsearchs );
7 @ISA = qw( FS::Record );
11 FS::svc_acct_pop - Object methods for svc_acct_pop records
17 $record = new FS::svc_acct_pop \%hash;
18 $record = new FS::svc_acct_pop { 'column' => 'value' };
20 $error = $record->insert;
22 $error = $new_record->replace($old_record);
24 $error = $record->delete;
26 $error = $record->check;
30 An FS::svc_acct object represents an point of presence. FS::svc_acct_pop
31 inherits from FS::Record. The following fields are currently supported:
35 =item popnum - primary key (assigned automatically for new accounts)
45 =item loc - rest of number
55 Creates a new point of presence (if only it were that easy!). To add the
56 point of presence to the database, see L<"insert">.
60 sub table { 'svc_acct_pop'; }
64 Adds this point of presence to the database. If there is an error, returns the
65 error, otherwise returns false.
69 Removes this point of presence from the database.
71 =item replace OLD_RECORD
73 Replaces OLD_RECORD with this one in the database. If there is an error,
74 returns the error, otherwise returns false.
78 Checks all fields to make sure this is a valid point of presence. If there is
79 an error, returns the error, otherwise returns false. Called by the insert
87 $self->ut_numbern('popnum')
88 or $self->ut_text('city')
89 or $self->ut_text('state')
90 or $self->ut_number('ac')
91 or $self->ut_number('exch')
92 or $self->ut_numbern('loc')
101 $Id: svc_acct_pop.pm,v 1.2 2000-01-28 22:55:06 ivan Exp $
105 It should be renamed to part_pop.
109 L<FS::Record>, L<svc_acct>, schema.html from the base documentation.