1 package FS::cust_recon;
4 use base qw( FS::Record );
5 use FS::Record qw( qsearch qsearchs );
9 FS::cust_recon - Object methods for cust_recon records
15 $record = new FS::cust_recon \%hash;
16 $record = new FS::cust_recon { 'column' => 'value' };
18 $error = $record->insert;
20 $error = $new_record->replace($old_record);
22 $error = $record->delete;
24 $error = $record->check;
28 An FS::cust_recon object represents a customer reconcilation. FS::cust_recon
29 inherits from FS::Record. The following fields are currently supported:
114 Creates a new customer reconcilation. To add the reconcilation to the database,
117 Note that this stores the hash reference, not a distinct copy of the hash it
118 points to. You can ask the object for a copy with the I<hash> method.
122 sub table { 'cust_recon'; }
126 Adds this record to the database. If there is an error, returns the error,
127 otherwise returns false.
133 Delete this record from the database.
137 =item replace OLD_RECORD
139 Replaces the OLD_RECORD with this one in the database. If there is an error,
140 returns the error, otherwise returns false.
146 Checks all fields to make sure this is a valid reconcilation. If there is
147 an error, returns the error, otherwise returns false. Called by the insert
156 $self->ut_numbern('reconid')
157 || $self->ut_numbern('recondate')
158 || $self->ut_number('custnum')
159 || $self->ut_number('agentnum')
160 || $self->ut_text('last')
161 || $self->ut_text('first')
162 || $self->ut_text('address1')
163 || $self->ut_textn('address2')
164 || $self->ut_text('city')
165 || $self->ut_textn('state')
166 || $self->ut_textn('zip')
167 || $self->ut_textn('pkg')
168 || $self->ut_numbern('adjourn')
169 || $self->ut_textn('status')
170 || $self->ut_text('agent_custid')
171 || $self->ut_textn('agent_pkg')
172 || $self->ut_numbern('agent_adjourn')
173 || $self->ut_textn('comments')
175 return $error if $error;
184 Possibly the existance of this module.
188 L<FS::Record>, schema.html from the base documentation.