1 package FS::cust_bill_pkg_void;
4 use base qw( FS::Record );
5 use FS::Record; # qw( qsearch qsearchs );
9 FS::cust_bill_pkg_void - Object methods for cust_bill_pkg_void records
13 use FS::cust_bill_pkg_void;
15 $record = new FS::cust_bill_pkg_void \%hash;
16 $record = new FS::cust_bill_pkg_void { '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_bill_pkg_void object represents a voided invoice line item.
29 FS::cust_bill_pkg_void inherits from FS::Record. The following fields are
46 =item pkgpart_override
107 Creates a new record. To add the record to the database, see L<"insert">.
109 Note that this stores the hash reference, not a distinct copy of the hash it
110 points to. You can ask the object for a copy with the I<hash> method.
114 sub table { 'cust_bill_pkg_void'; }
118 Adds this record to the database. If there is an error, returns the error,
119 otherwise returns false.
125 Delete this record from the database.
129 =item replace OLD_RECORD
131 Replaces the OLD_RECORD with this one in the database. If there is an error,
132 returns the error, otherwise returns false.
138 Checks all fields to make sure this is a valid record. If there is
139 an error, returns the error, otherwise returns false. Called by the insert
148 $self->ut_number('billpkgnum')
149 || $self->ut_snumber('pkgnum')
150 || $self->ut_number('invnum') #cust_bill or cust_bill_void ?
151 || $self->ut_numbern('pkgpart_override')
152 || $self->ut_money('setup')
153 || $self->ut_money('recur')
154 || $self->ut_numbern('sdate')
155 || $self->ut_numbern('edate')
156 || $self->ut_textn('itemdesc')
157 || $self->ut_textn('itemcomment')
158 || $self->ut_textn('section')
159 || $self->ut_textn('freq')
160 || $self->ut_numbern('quantity')
161 || $self->ut_moneyn('unitsetup')
162 || $self->ut_moneyn('unitrecur')
163 || $self->ut_enum('hidden', [ '', 'Y' ])
165 return $error if $error;
176 L<FS::Record>, schema.html from the base documentation.