1 package FS::quotation_pkg_detail;
2 use base qw(FS::Record);
8 FS::quotation_pkg_detail - Object methods for quotation_pkg_detail records
12 use FS::quotation_pkg_detail;
14 $record = new FS::quotation_pkg_detail \%hash;
15 $record = new FS::quotation_pkg_detail { 'column' => 'value' };
17 $error = $record->insert;
19 $error = $new_record->replace($old_record);
21 $error = $record->delete;
23 $error = $record->check;
27 An FS::quotation_pkg_detail object represents additional customer package details
28 for a quotation. FS::quotation_pkg_detail inherits from FS::Record. The following fields are
39 for the relevant L<FS::quotation_pkg>
47 flag, indicates detail should be copied over when ordering
51 # 'format' field isn't used, there for TemplateItem_Mixin
61 Creates a new record. To add the record to the database, see L<"insert">.
63 Note that this stores the hash reference, not a distinct copy of the hash it
64 points to. You can ask the object for a copy with the I<hash> method.
68 # the new method can be inherited from FS::Record, if a table method is defined
70 sub table { 'quotation_pkg_detail'; }
74 Adds this record to the database. If there is an error, returns the error,
75 otherwise returns false.
79 # the insert method can be inherited from FS::Record
83 Delete this record from the database.
87 # the delete method can be inherited from FS::Record
89 =item replace OLD_RECORD
91 Replaces the OLD_RECORD with this one in the database. If there is an error,
92 returns the error, otherwise returns false.
96 # the replace method can be inherited from FS::Record
100 Checks all fields to make sure this is a valid record. If there is
101 an error, returns the error, otherwise returns false. Called by the insert
106 # the check method should currently be supplied - FS::Record contains some
107 # data checking routines
113 $self->ut_numbern('detailnum')
114 || $self->ut_foreign_key('quotationpkgnum', 'quotation_pkg', 'quotationpkgnum')
115 || $self->ut_text('detail')
116 || $self->ut_flag('copy_on_order')
118 return $error if $error;
129 L<FS::quotation_pkg>, L<FS::Record>