X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Ftax_class.pm;h=904b575e4df0b722fe81185b93e50c07ad045482;hp=04e9d37f95c48995fae5b4aa2ce496b86a49d425;hb=3adb46fccf9f631e188ea5383bd147b340477639;hpb=60dc4fe638eb9abc5a3ea92d43031dcbfeb71454 diff --git a/FS/FS/tax_class.pm b/FS/FS/tax_class.pm index 04e9d37f9..904b575e4 100644 --- a/FS/FS/tax_class.pm +++ b/FS/FS/tax_class.pm @@ -31,26 +31,24 @@ FS::tax_class - Object methods for tax_class records =head1 DESCRIPTION -An FS::tax_class object represents a tax class. FS::tax_class -inherits from FS::Record. The following fields are currently supported: +An FS::tax_class object represents a class of tax definitions. FS::tax_class +inherits from FS::Record. -=over 4 - -=item taxclassnum - -Primary key +This should not be confused with L, which defines tax +classes for I definitions. The two kinds of tax classes are +completely unrelated. -=item data_vendor +The following fields are currently supported: -Vendor of the tax data +=over 4 -=item taxclass +=item taxclassnum - Primary key -Tax class +=item data_vendor - Vendor of the tax data ('cch' or 'billsoft') -=item description +=item taxclass - The identifier used in the tax tables for this class. -Human readable description of the tax class +=item description - Human readable description of the tax class. =back @@ -321,6 +319,13 @@ sub batch_import { ''; }; + } elsif ( $format eq 'billsoft' ) { + # Billsoft doesn't actually have a format for this; it's just my own + # invention to have a way to load the list of tax classes from the + # documentation. + @fields = qw( taxclass description ); + $endhook = $hook = sub {}; + } elsif ( $format eq 'extended' ) { die "unimplemented\n"; @fields = qw( );