% include( '/elements/header.html', 'Developer Documentation' ) %> <& /elements/menubar.html, 'Freeside Perl Modules' => $fsurl.'docs/library/FS.html', 'Complete Index' => $fsurl.'docs/library/index.html', &>
FS::tax_rate_location - Object methods for tax_rate_location records
use FS::tax_rate_location;
$record = new FS::tax_rate_location \%hash;
$record = new FS::tax_rate_location { 'column' => 'value' };
$error = $record->insert;
$error = $new_record->replace($old_record);
$error = $record->delete;
$error = $record->check;
An FS::tax_rate_location object represents a tax jurisdiction. The only functional field is "geocode", a foreign key to tax rates (FS::tax_rate) that apply in the jurisdiction. The city, county, state, and country fields are provided for description and reporting.
FS::tax_rate_location inherits from FS::Record. The following fields are currently supported:
Creates a new tax rate location. To add the record to the database, see "insert".
Note that this stores the hash reference, not a distinct copy of the hash it points to. You can ask the object for a copy with the hash method.
Adds this record to the database. If there is an error, returns the error, otherwise returns false.
Delete this record from the database.
Replaces the OLD_RECORD with this one in the database. If there is an error, returns the error, otherwise returns false.
Checks all fields to make sure this is a valid tax rate location. If there is an error, returns the error, otherwise returns false. Called by the insert and replace methods.
Finds an existing, non-disabled tax jurisdiction matching the data_vendor and geocode fields. If there is one, updates its city, county, state, and country to match this record. If there is no existing record, inserts this record.
Returns an SQL fragment identifying matching tax_rate_location / cust_bill_pkg_tax_rate_location records.
Parameters are county, state, city and locationtaxid
Starts importing tax_rate_location records from a file. HASHREF must contain 'filehandle' (an open handle to the input file) and 'format' (one of 'cch', 'cch-fixed', 'cch-update', 'cch-fixed-update', or 'billsoft'). JOB is an FS::queue object to receive progress messages.
Currently somewhat specific to CCH supplied data.
FS::Record, schema.html from the base documentation.
Hey! The above document had some coding errors, which are explained below:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'