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)
53 Creates a new point of presence (if only it were that easy!). To add the
54 point of presence to the database, see L<"insert">.
58 sub table { 'svc_acct_pop'; }
62 Adds this point of presence to the database. If there is an error, returns the
63 error, otherwise returns false.
67 Removes this point of presence from the database.
69 =item replace OLD_RECORD
71 Replaces OLD_RECORD with this one in the database. If there is an error,
72 returns the error, otherwise returns false.
76 Checks all fields to make sure this is a valid point of presence. If there is
77 an error, returns the error, otherwise returns false. Called by the insert
85 $self->ut_numbern('popnum')
86 or $self->ut_text('city')
87 or $self->ut_text('state')
88 or $self->ut_number('ac')
89 or $self->ut_number('exch')
98 $Id: svc_acct_pop.pm,v 1.2 1998-12-29 11:59:53 ivan Exp $
102 It should be renamed to part_pop.
106 L<FS::Record>, L<svc_acct>, schema.html from the base documentation.
110 Class dealing with pops
112 ivan@sisd.com 98-mar-8
114 pod ivan@sisd.com 98-sep-23
116 $Log: svc_acct_pop.pm,v $
117 Revision 1.2 1998-12-29 11:59:53 ivan
118 mostly properly OO, some work still to be done with svc_ stuff