1 package FS::cust_bill_pkg_detail_void;
4 use base qw( FS::Record );
5 use FS::Record; # qw( qsearch qsearchs );
6 use FS::cust_bill_pkg_void;
11 FS::cust_bill_pkg_detail_void - Object methods for cust_bill_pkg_detail_void records
15 use FS::cust_bill_pkg_detail_void;
17 $record = new FS::cust_bill_pkg_detail_void \%hash;
18 $record = new FS::cust_bill_pkg_detail_void { 'column' => 'value' };
20 $error = $record->insert;
22 $error = $new_record->replace($old_record);
24 $error = $record->delete;
26 $error = $record->check;
30 An FS::cust_bill_pkg_detail_void object represents additional detail
31 information for a voided invoice line item. FS::cust_bill_pkg_detail_void
32 inherits from FS::Record. The following fields are currently supported:
97 Creates a new record. To add the record to the database, see L<"insert">.
99 Note that this stores the hash reference, not a distinct copy of the hash it
100 points to. You can ask the object for a copy with the I<hash> method.
104 sub table { 'cust_bill_pkg_detail_void'; }
108 Adds this record to the database. If there is an error, returns the error,
109 otherwise returns false.
115 Delete this record from the database.
119 =item replace OLD_RECORD
121 Replaces the OLD_RECORD with this one in the database. If there is an error,
122 returns the error, otherwise returns false.
128 Checks all fields to make sure this is a valid record. If there is
129 an error, returns the error, otherwise returns false. Called by the insert
138 $self->ut_number('detailnum')
139 || $self->ut_foreign_keyn('billpkgnum', 'cust_bill_pkg_void', 'billpkgnum')
140 || $self->ut_numbern('pkgnum')
141 || $self->ut_numbern('invnum')
142 || $self->ut_floatn('amount')
143 || $self->ut_enum('format', [ '', 'C' ] )
144 || $self->ut_foreign_keyn('classnum', 'usage_class', 'classnum')
145 || $self->ut_numbern('duration')
146 || $self->ut_textn('phonenum')
147 || $self->ut_textn('accountcode')
148 || $self->ut_numbern('startdate')
149 || $self->ut_textn('regionname')
150 || $self->ut_text('detail')
152 return $error if $error;
163 L<FS::Record>, schema.html from the base documentation.