diff options
author | jeff <jeff> | 2009-12-21 14:44:09 +0000 |
---|---|---|
committer | jeff <jeff> | 2009-12-21 14:44:09 +0000 |
commit | 5b87686b7a7f09e766bb1749628365b81f4f72fc (patch) | |
tree | 2155febf3cc0c9fff0561bdc46a1f2cd44c36a2a /FS/FS/cust_tax_exempt_pkg.pm | |
parent | 250e277720fbe288875736c7f5f957668f4c1880 (diff) |
manage tax exemptions (texas-tax) on credit application RT953
Diffstat (limited to 'FS/FS/cust_tax_exempt_pkg.pm')
-rw-r--r-- | FS/FS/cust_tax_exempt_pkg.pm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/FS/FS/cust_tax_exempt_pkg.pm b/FS/FS/cust_tax_exempt_pkg.pm index 128921b..e63b84b 100644 --- a/FS/FS/cust_tax_exempt_pkg.pm +++ b/FS/FS/cust_tax_exempt_pkg.pm @@ -6,6 +6,7 @@ use FS::Record qw( qsearch qsearchs ); use FS::cust_main_Mixin; use FS::cust_bill_pkg; use FS::cust_main_county; +use FS::cust_credit_bill_pkg; @ISA = qw( FS::cust_main_Mixin FS::Record ); @@ -112,6 +113,9 @@ sub check { # || $self->ut_foreign_key('custnum', 'cust_main', 'custnum') || $self->ut_foreign_key('billpkgnum', 'cust_bill_pkg', 'billpkgnum') || $self->ut_foreign_key('taxnum', 'cust_main_county', 'taxnum') + || $self->ut_foreign_keyn('creditbillpkgnum', + 'cust_credit_bill_pkg', + 'creditbillpkgnum') || $self->ut_number('year') #check better || $self->ut_number('month') #check better || $self->ut_money('amount') @@ -119,6 +123,18 @@ sub check { ; } +=item cust_main_county + +Returns the associated tax definition if it still exists in the database. +Otherwise returns false. + +=cut + +sub cust_main_county { + my $self = shift; + qsearchs( 'cust_main_county', { 'taxnum', $self->taxnum } ); +} + =back =head1 BUGS |