X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_tax_exempt.pm;h=045421c9958a93e0a7a2a86d0a6440b0be5e67ae;hp=da0de000abd8922a3128b5cac0b61a8bffbcad3f;hb=ad7f49821d40ffd099a45acc32ba91e0e211aede;hpb=f7fd2a3e34da751cbc02bbf215e99c6dc89adc15 diff --git a/FS/FS/cust_tax_exempt.pm b/FS/FS/cust_tax_exempt.pm index da0de000a..045421c99 100644 --- a/FS/FS/cust_tax_exempt.pm +++ b/FS/FS/cust_tax_exempt.pm @@ -3,8 +3,11 @@ package FS::cust_tax_exempt; use strict; use vars qw( @ISA ); use FS::Record qw( qsearch qsearchs ); +use FS::cust_main_Mixin; +use FS::cust_main; +use FS::cust_main_county; -@ISA = qw(FS::Record); +@ISA = qw( FS::cust_main_Mixin FS::Record ); =head1 NAME @@ -27,7 +30,7 @@ FS::cust_tax_exempt - Object methods for cust_tax_exempt records =head1 DESCRIPTION -An FS::cust_tax_exempt object represents a historical record of a customer tax +An FS::cust_tax_exempt object represents a record of an old-style customer tax exemption. Currently this is only used for "texas tax". FS::cust_tax_exempt inherits from FS::Record. The following fields are currently supported: @@ -47,6 +50,12 @@ inherits from FS::Record. The following fields are currently supported: =back +=head1 NOTE + +Old-style customer tax exemptions are only useful for legacy migrations - if +you are looking for current customer tax exemption data see +L. + =head1 METHODS =over 4 @@ -115,6 +124,17 @@ sub check { ; } +=item cust_main_county + +Returns the FS::cust_main_county object associated with this tax exemption. + +=cut + +sub cust_main_county { + my $self = shift; + qsearchs( 'cust_main_county', { 'taxnum' => $self->taxnum } ); +} + =back =head1 BUGS