1 package FS::cust_tax_adjustment;
2 use base qw( FS::Record );
8 FS::cust_tax_adjustment - Object methods for cust_tax_adjustment records
12 use FS::cust_tax_adjustment;
14 $record = new FS::cust_tax_adjustment \%hash;
15 $record = new FS::cust_tax_adjustment { 'column' => 'value' };
17 $error = $record->insert;
19 $error = $new_record->replace($old_record);
21 $error = $record->delete;
23 $error = $record->check;
27 An FS::cust_tax_adjustment object represents an taxation adjustment.
28 FS::cust_tax_adjustment inherits from FS::Record. The following fields are
66 Creates a new record. To add the record to the database, see L<"insert">.
68 Note that this stores the hash reference, not a distinct copy of the hash it
69 points to. You can ask the object for a copy with the I<hash> method.
73 # the new method can be inherited from FS::Record, if a table method is defined
75 sub table { 'cust_tax_adjustment'; }
79 Adds this record to the database. If there is an error, returns the error,
80 otherwise returns false.
84 # the insert method can be inherited from FS::Record
88 Delete this record from the database.
92 # the delete method can be inherited from FS::Record
94 =item replace OLD_RECORD
96 Replaces the OLD_RECORD with this one in the database. If there is an error,
97 returns the error, otherwise returns false.
101 # the replace method can be inherited from FS::Record
105 Checks all fields to make sure this is a valid record. If there is
106 an error, returns the error, otherwise returns false. Called by the insert
111 # the check method should currently be supplied - FS::Record contains some
112 # data checking routines
118 $self->ut_numbern('adjustmentnum')
119 || $self->ut_foreign_key('custnum', 'cust_main', 'custnum' )
120 || $self->ut_text('taxname')
121 || $self->ut_money('amount')
122 || $self->ut_textn('comment')
123 || $self->ut_foreign_keyn('billpkgnum', 'cust_bill_pkg', 'billpkgnum' )
125 return $error if $error;
136 L<FS::Record>, schema.html from the base documentation.