diff options
| author | Mark Wells <mark@freeside.biz> | 2015-09-20 10:00:37 -1000 |
|---|---|---|
| committer | Mark Wells <mark@freeside.biz> | 2015-09-20 10:00:37 -1000 |
| commit | b38fc0b849b21ed4e2a83bab885b63223914edd5 (patch) | |
| tree | 7cca2a6df1579a3d5ca4a7a2cb45671140b6fbc8 | |
| parent | 01698260f2624212ab71be26bb4c644c0aeea2e4 (diff) | |
fix creation of negative exemption records, #37088, from #13971
| -rw-r--r-- | FS/FS/cust_tax_exempt_pkg.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/FS/FS/cust_tax_exempt_pkg.pm b/FS/FS/cust_tax_exempt_pkg.pm index b64ef515d..5057781f4 100644 --- a/FS/FS/cust_tax_exempt_pkg.pm +++ b/FS/FS/cust_tax_exempt_pkg.pm @@ -3,6 +3,7 @@ use base qw( FS::cust_main_Mixin FS::Record ); use strict; 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 @@ -176,6 +177,16 @@ Otherwise returns false. =cut +# do not remove; this can't be autogenerated + +sub cust_main_county { + my $self = shift; + if ( $self->taxtype eq 'FS::cust_main_county' ) { + return FS::cust_main_county->by_key($self->taxnum); + } + ''; +} + sub _upgrade_data { my $class = shift; |
