[freeside-commits] branch FREESIDE_3_BRANCH updated. 99a2cca111734e80c36977cdd9f4abd5964b26a6
Mark Wells
mark at 420.am
Tue Jul 21 11:49:18 PDT 2015
The branch, FREESIDE_3_BRANCH has been updated
via 99a2cca111734e80c36977cdd9f4abd5964b26a6 (commit)
from 936160bf9d4bff3abbe8c71f9985c33d54cf3ca3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 99a2cca111734e80c36977cdd9f4abd5964b26a6
Author: Mark Wells <mark at freeside.biz>
Date: Tue Jul 21 11:41:55 2015 -0700
fix line item report descriptions when showing both tax and non-tax items, #37301
diff --git a/httemplate/search/cust_bill_pkg.cgi b/httemplate/search/cust_bill_pkg.cgi
index 8892af1..a542403 100644
--- a/httemplate/search/cust_bill_pkg.cgi
+++ b/httemplate/search/cust_bill_pkg.cgi
@@ -216,7 +216,7 @@ if ( $conf->exists('enable_taxclasses') ) {
}
# used in several places
-my $itemdesc = 'COALESCE(part_fee.itemdesc, part_pkg.pkg, cust_bill_pkg.itemdesc)';
+my $itemdesc = 'COALESCE(cust_bill_pkg.itemdesc, part_fee.itemdesc, part_pkg.pkg, cust_bill_pkg.itemdesc)';
# valid in both the tax and non-tax cases
my $join_cust =
@@ -291,14 +291,14 @@ if ( $use_override ) {
$part_pkg = 'override';
}
push @select, "$part_pkg.pkgpart", "$part_pkg.pkg";
+push @select, "($itemdesc) AS itemdesc"; # available in all report modes
+
push @select, "COALESCE($part_pkg.taxclass, part_fee.taxclass) AS taxclass"
if $conf->exists('enable_taxclasses');
# the non-tax case
if ( $cgi->param('nottax') ) {
- push @select, "($itemdesc) AS itemdesc";
-
push @where,
'(cust_bill_pkg.pkgnum > 0 OR cust_bill_pkg.feepart IS NOT NULL)';
-----------------------------------------------------------------------
Summary of changes:
httemplate/search/cust_bill_pkg.cgi | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
More information about the freeside-commits
mailing list