RT#37125: Include discounts in report: customer accounting summary [tweak for v3...
[freeside.git] / httemplate / search / report_customer_accounting_summary.html
index bdcdbcc..9edbd0f 100755 (executable)
     &>
 
     <& /elements/tr-checkbox.html,
-        'label' => 'Show Gross &amp; Discounted',
-        'field' => 'grossdiscount',
-        'value' => 1,
+        'label'      => 'Show Gross &amp; Discounted',
+        'field'      => 'grossdiscount',
+        'value'      => 1,
+        'curr_value' => defined($cgi->param('grossdiscount'))
+                        ? scalar($cgi->param('grossdiscount'))
+                        : undef, #default to off in v3
     &>
     
   </TABLE>