- 'agentnum' => $opt{'agentnum'},
- 'remove_empty' => $opt{'remove_empty'},
+my %reportopts = (
+ 'items' => \@items,
+ 'params' => $opt{'params'},
+ 'item_labels' => ( $cgi->param('_type') =~ /^(png)$/
+ ? $opt{'graph_labels'}
+ : $opt{'labels'}
+ ),
+ 'colors' => $opt{'colors'},
+ 'links' => $opt{'links'},
+
+ 'start_day' => $opt{'start_day'},
+ 'start_month' => $opt{'start_month'},
+ 'start_year' => $opt{'start_year'},
+ 'end_day' => $opt{'end_day'},
+ 'end_month' => $opt{'end_month'},
+ 'end_year' => $opt{'end_year'},
+ 'projection' => $opt{'projection'},
+ 'agentnum' => $opt{'agentnum'},
+ 'refnum' => $opt{'refnum'},
+ 'cust_classnum'=> $opt{'cust_classnum'},
+ 'remove_empty' => $opt{'remove_empty'},
+ 'doublemonths' => $opt{'doublemonths'},