diff options
author | Mark Wells <mark@freeside.biz> | 2015-05-30 15:12:07 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-05-30 15:12:07 -0700 |
commit | 817c1ce0e1cbcfd1f684222c66f46dd13b2d6dd7 (patch) | |
tree | 25fd80fae19bbe1b4ec2c892a35a631cf232d590 /FS/FS/cust_bill_pkg_tax_location.pm | |
parent | 3846acae1c2a7ecb275e400cf3802ada6bc89ed2 (diff) |
SureTax, #31639, #33015, #34598
Diffstat (limited to 'FS/FS/cust_bill_pkg_tax_location.pm')
-rw-r--r-- | FS/FS/cust_bill_pkg_tax_location.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/FS/FS/cust_bill_pkg_tax_location.pm b/FS/FS/cust_bill_pkg_tax_location.pm index 2ffc273..9a1f22a 100644 --- a/FS/FS/cust_bill_pkg_tax_location.pm +++ b/FS/FS/cust_bill_pkg_tax_location.pm @@ -144,6 +144,19 @@ Returns the cust_bill_pkg object for the I<taxable> charge. Returns the associated cust_location object +=item taxname + +Returns the tax name (for populating the itemdesc field). + +=cut + +sub taxname { + my $self = shift; + my $cust_main_county = FS::cust_main_county->by_key($self->taxnum) + or return ''; + $cust_main_county->taxname || 'Tax'; +} + =item desc Returns a description for this tax line item constituent. Currently this |