invoice_sections_with_taxes per-agent, RT#79636
[freeside.git] / httemplate / elements / select-pkg_class.html
index f30259e..e47cfe4 100644 (file)
@@ -3,7 +3,7 @@
                  'name_col'    => 'classname',
                  'value'       => $classnum,
                  'empty_label' => '(none)',
-                 'hashref'     => { 'disabled' => '' },
+                 'hashref'     => \%hash,
                  %opt,
              )
 %>
 my %opt = @_;
 my $classnum = $opt{'curr_value'} || $opt{'value'};
 
+my %hash = ();
+$hash{'disabled'} = '' unless $opt{'showdisabled'};
+
+
 $opt{'records'} = delete $opt{'pkg_class'}
   if $opt{'pkg_class'};