summaryrefslogtreecommitdiff
path: root/FS/FS/cust_bill_pkg_tax_location.pm
diff options
context:
space:
mode:
authorjeff <jeff>2009-12-18 18:20:36 +0000
committerjeff <jeff>2009-12-18 18:20:36 +0000
commitfafdaeca1af0771cefd8f6707b0f75ee8a33f03a (patch)
tree72a0abc62079ad7a4b88c441d24546c9a668c489 /FS/FS/cust_bill_pkg_tax_location.pm
parent40a7b3dc653e099f7bd0bd762b649b04c4432db2 (diff)
fix handling of tax location records and add a 'clear' button for tax credits
Diffstat (limited to 'FS/FS/cust_bill_pkg_tax_location.pm')
-rw-r--r--FS/FS/cust_bill_pkg_tax_location.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/cust_bill_pkg_tax_location.pm b/FS/FS/cust_bill_pkg_tax_location.pm
index 0d3bd3a..120a2d0 100644
--- a/FS/FS/cust_bill_pkg_tax_location.pm
+++ b/FS/FS/cust_bill_pkg_tax_location.pm
@@ -161,7 +161,10 @@ sub desc {
map { $cust_location->$_ }
qw( state county city ) # country?
);
- $self->cust_bill_pkg->desc. " ($location)";
+ my $cust_bill_pkg_desc = $self->billpkgnum
+ ? $self->cust_bill_pkg->desc
+ : $self->cust_bill_pkg_desc;
+ "$cust_bill_pkg_desc ($location)";
}
=item owed