add credit reason selection, RT#85046
[freeside.git] / httemplate / search / report_cust_credit.html
index 34e0539..c37b578 100644 (file)
                 'field' => 'amount',
   &>
 
-  <& /elements/tr-select-show_voided_credits.html,
-                'label' => emt('Show Voided Credits'),
+  <& /elements/tr-select-reason.html,
+       'label'        => emt('Reason').':',
+       'field'        => 'reasonnum',
+       'reason_class' => 'R',
+       'cgi'          => $cgi,
+       'hide_addnew'  => 1,
+       'pre_options'  => [ 0 => emt('(any reason)') ],
+  &>
+
+  <& /elements/tr-checkbox.html,
+       'label' => emt('Show Voided Credits').':',
+       'field' => 'show_voided_credits',
+       'value' => '1',
   &>
 
 
@@ -51,4 +62,3 @@ my $title = $cgi->param('unapplied') ?
               'Unapplied credit report' : 'Credit report';
 
 </%init>
-