2 FS::cust_main_county - Object methods for cust_main_county
6 use FS::cust_main_county;
8 $record = create FS::cust_main_county \%hash;
9 $record = create FS::cust_main_county { 'column' => 'value' };
11 $error = $record->insert;
13 $error = $new_record->replace($old_record);
15 $error = $record->delete;
17 $error = $record->check;
20 An FS::cust_main_county object represents a tax rate, defined by
21 locale. FS::cust_main_county inherits from FS::Record. The
22 following fields are currently supported:
24 taxnum - primary key (assigned automatically for new tax rates)
30 Creates a new tax rate. To add the tax rate to the database,
31 see the section on "insert".
34 Adds this tax rate to the database. If there is an error,
35 returns the error, otherwise returns false.
38 Deletes this tax rate from the database. If there is an
39 error, returns the error, otherwise returns false.
42 Replaces the OLD_RECORD with this one in the database. If
43 there is an error, returns the error, otherwise returns
47 Checks all fields to make sure this is a valid tax rate. If
48 there is an error, returns the error, otherwise returns
49 false. Called by the insert and replace methods.
52 It doesn't properly override FS::Record yet.
54 A country field (and possibly a currency field) should be added.
57 the FS::Record manpage, the FS::cust_main manpage, the
58 FS::cust_bill manpage, schema.html from the base documentation.
61 ivan@voicenet.com 97-dec-16
63 Changed check for 'tax' to use the new ut_float subroutine
64 bmccane@maxbaud.net 98-apr-3
66 pod ivan@sisd.com 98-sep-21