correctly alias itemdesc column, #28506
authorMark Wells <mark@freeside.biz>
Wed, 9 Apr 2014 19:52:01 +0000 (12:52 -0700)
committerMark Wells <mark@freeside.biz>
Wed, 9 Apr 2014 19:52:01 +0000 (12:52 -0700)
httemplate/search/cust_bill_pkg.cgi

index 769a13d..6cda34a 100644 (file)
@@ -302,7 +302,7 @@ push @select, "COALESCE($part_pkg.taxclass, part_fee.taxclass) AS taxclass"
 # the non-tax case
 if ( $cgi->param('nottax') ) {
 
-  push @select, $itemdesc;
+  push @select, "($itemdesc) AS itemdesc";
 
   push @where,
     '(cust_bill_pkg.pkgnum > 0 OR cust_bill_pkg.feepart IS NOT NULL)';