RT# 82087 - added up and down speeds to report
[freeside.git] / httemplate / search / cust_credit.html
index 468a01a..654988e 100755 (executable)
@@ -33,18 +33,25 @@ my $clink = sub {
     : '';
 };
 
-# form selectbox for show_voided_credits:
-# - value='': use default from $conf
-# - value="0" : override default, do not show voided credits
-# - value="1" : override default, show voided credits
+# form checkbox for show_voided_credits:
+# - value=unset : do not show voided credits
+# - value="1"   : show voided credits
 my $show_voided_credits;
-$show_voided_credits = $conf->config('show_voided_credits');
 $show_voided_credits = $cgi->param('show_voided_credits')
-  if $cgi->param('show_voided_credits') =~ /^(\d)$/;
+  if $cgi->param('show_voided_credits');
 
 my (@header, @fields, @sort_fields, $align, @links, @color, @style);
 $align = '';
 
+# Report Column: crednum
+push @header, emt('Ref No');
+push @fields, sub { shift->crednum };
+push @sort_fields, '';
+$align .= 'l';
+push @links, '';
+push @color, '';
+push @style, '';
+
 # Report Column: Amount
 push @header, emt('Amount');
 push @fields, sub { $money_char .sprintf('%.2f', shift->amount) };
@@ -248,7 +255,6 @@ my @select = (
      cust_credit.custnum
      cust_credit._date
      cust_credit.amount
-     cust_credit.currency
      cust_credit.otaker
      cust_credit.usernum
      cust_credit.reason
@@ -260,7 +266,6 @@ my @select = (
      cust_credit.commission_agentnum
      cust_credit.commission_salesnum
      cust_credit.commission_pkgnum
-     cust_credit.commission_invnum
      cust_credit.credbatch
      ),
   'Null as void_date',
@@ -278,7 +283,6 @@ my @select_void = (
      cust_credit_void.custnum
      cust_credit_void._date
      cust_credit_void.amount
-     cust_credit_void.currency
      cust_credit_void.otaker
      cust_credit_void.usernum
      cust_credit_void.reason
@@ -290,7 +294,6 @@ my @select_void = (
      cust_credit_void.commission_agentnum
      cust_credit_void.commission_salesnum
      cust_credit_void.commission_pkgnum
-     cust_credit_void.commission_invnum
      ),
   'Null as credbatch',
   qw(cust_credit_void.void_date