projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0169826
)
fix creation of negative exemption records, #37088, from #13971
author
Mark Wells
<mark@freeside.biz>
Sun, 20 Sep 2015 20:00:37 +0000
(10:00 -1000)
committer
Mark Wells
<mark@freeside.biz>
Sun, 20 Sep 2015 20:00:37 +0000
(10:00 -1000)
FS/FS/cust_tax_exempt_pkg.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_tax_exempt_pkg.pm
b/FS/FS/cust_tax_exempt_pkg.pm
index
b64ef51
..
5057781
100644
(file)
--- 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;