1 package FS::part_fee_msgcat;
2 use base qw( FS::Record );
9 FS::part_fee_msgcat - Object methods for part_fee_msgcat records
13 use FS::part_fee_msgcat;
15 $record = new FS::part_fee_msgcat \%hash;
16 $record = new FS::part_fee_msgcat { 'column' => 'value' };
18 $error = $record->insert;
20 $error = $new_record->replace($old_record);
22 $error = $record->delete;
24 $error = $record->check;
28 An FS::part_fee_msgcat object represents localized labels of a fee
29 definition. FS::part_fee_msgcat inherits from FS::Record. The following
30 fields are currently supported:
38 =item feepart - Fee definition (L<FS::part_fee>)
40 =item locale - locale string
42 =item itemdesc - Localized fee name (customer-viewable)
44 =item comment - Localized fee comment (non-customer-viewable), optional
54 Creates a new record. To add the record to the database, see L<"insert">.
56 Note that this stores the hash reference, not a distinct copy of the hash it
57 points to. You can ask the object for a copy with the I<hash> method.
61 # the new method can be inherited from FS::Record, if a table method is defined
63 sub table { 'part_fee_msgcat'; }
67 Adds this record to the database. If there is an error, returns the error,
68 otherwise returns false.
72 # the insert method can be inherited from FS::Record
76 Delete this record from the database.
80 # the delete method can be inherited from FS::Record
82 =item replace OLD_RECORD
84 Replaces the OLD_RECORD with this one in the database. If there is an error,
85 returns the error, otherwise returns false.
89 # the replace method can be inherited from FS::Record
93 Checks all fields to make sure this is a valid record. If there is
94 an error, returns the error, otherwise returns false. Called by the insert
103 $self->ut_numbern('feepartmsgnum')
104 || $self->ut_foreign_key('feepart', 'part_fee', 'feepart')
105 || $self->ut_enum('locale', [ FS::Locales->locales ] )
106 || $self->ut_text('itemdesc')
107 || $self->ut_textn('comment')
109 return $error if $error;
118 Exactly duplicates part_pkg_msgcat.pm.
122 L<FS::Record>, schema.html from the base documentation.