1 package FS::cust_bill_pkg_display_void;
4 use base qw( FS::Record );
5 use FS::Record; # qw( qsearch qsearchs );
6 use FS::cust_bill_pkg_void;
10 FS::cust_bill_pkg_display_void - Object methods for cust_bill_pkg_display_void records
14 use FS::cust_bill_pkg_display_void;
16 $record = new FS::cust_bill_pkg_display_void \%hash;
17 $record = new FS::cust_bill_pkg_display_void { 'column' => 'value' };
19 $error = $record->insert;
21 $error = $new_record->replace($old_record);
23 $error = $record->delete;
25 $error = $record->check;
29 An FS::cust_bill_pkg_display_void object represents voided line item display
30 information. FS::cust_bill_pkg_display_void inherits from FS::Record. The
31 following fields are currently supported:
35 =item billpkgdisplaynum
68 Creates a new record. To add the record to the database, see L<"insert">.
70 Note that this stores the hash reference, not a distinct copy of the hash it
71 points to. You can ask the object for a copy with the I<hash> method.
75 sub table { 'cust_bill_pkg_display_void'; }
79 Adds this record to the database. If there is an error, returns the error,
80 otherwise returns false.
86 Delete this record from the database.
90 =item replace OLD_RECORD
92 Replaces the OLD_RECORD with this one in the database. If there is an error,
93 returns the error, otherwise returns false.
99 Checks all fields to make sure this is a valid record. If there is
100 an error, returns the error, otherwise returns false. Called by the insert
109 $self->ut_number('billpkgdisplaynum')
110 || $self->ut_foreign_key('billpkgnum', 'cust_bill_pkg_void', 'billpkgnum')
111 || $self->ut_textn('section')
112 || $self->ut_enum('post_total', [ '', 'Y' ])
113 || $self->ut_enum('type', [ '', 'S', 'R', 'U' ])
114 || $self->ut_enum('summary', [ '', 'Y' ])
116 return $error if $error;
127 L<FS::Record>, schema.html from the base documentation.