projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git.freeside.biz:/home/git/freeside
[freeside.git]
/
FS
/
FS
/
cust_tax_exempt_pkg.pm
diff --git
a/FS/FS/cust_tax_exempt_pkg.pm
b/FS/FS/cust_tax_exempt_pkg.pm
index
bbabb5b
..
5057781
100644
(file)
--- a/
FS/FS/cust_tax_exempt_pkg.pm
+++ b/
FS/FS/cust_tax_exempt_pkg.pm
@@
-1,19
+1,13
@@
package FS::cust_tax_exempt_pkg;
package FS::cust_tax_exempt_pkg;
+use base qw( FS::cust_main_Mixin FS::Record );
use strict;
use strict;
-use vars qw( @ISA );
-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;
use FS::UID qw(dbh);
use FS::UID qw(dbh);
+use FS::cust_main_county;
use FS::upgrade_journal;
# some kind of common ancestor with cust_bill_pkg_tax_location would make sense
use FS::upgrade_journal;
# some kind of common ancestor with cust_bill_pkg_tax_location would make sense
-@ISA = qw( FS::cust_main_Mixin FS::Record );
-
=head1 NAME
FS::cust_tax_exempt_pkg - Object methods for cust_tax_exempt_pkg records
=head1 NAME
FS::cust_tax_exempt_pkg - Object methods for cust_tax_exempt_pkg records
@@
-183,9
+177,14
@@
Otherwise returns false.
=cut
=cut
+# do not remove; this can't be autogenerated
+
sub cust_main_county {
my $self = shift;
sub cust_main_county {
my $self = shift;
- qsearchs( 'cust_main_county', { 'taxnum', $self->taxnum } );
+ if ( $self->taxtype eq 'FS::cust_main_county' ) {
+ return FS::cust_main_county->by_key($self->taxnum);
+ }
+ '';
}
sub _upgrade_data {
}
sub _upgrade_data {