Skip to content

Commit

Permalink
#42: Don't display header if no total and ...
Browse files Browse the repository at this point in the history
... no display of empty timeframes.
  • Loading branch information
lat9 committed Apr 25, 2023
1 parent da64c02 commit d1c8655
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zc_plugins/SalesReport/v4.0.0/admin/stats_sales_report2.php
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@
}

// display the timeframe totals line, if necessary
if ($sr->detail_level !== 'timeframe') {
if ($sr->detail_level !== 'timeframe' && (isset($timeframe['total']) || DISPLAY_EMPTY_TIMEFRAMES === true)) {
?>
<!--TIMEFRAME TOTAL HEADER-->
<tr class="totalHeadingRow">
Expand Down Expand Up @@ -979,7 +979,7 @@
?>
</tr>
<?php
} elseif (DISPLAY_EMPTY_TIMEFRAMES !== false) {
} elseif (DISPLAY_EMPTY_TIMEFRAMES === true) {
// display the "no data" line
$colspan = 12;
if ($display_tax === true) {
Expand Down

0 comments on commit d1c8655

Please sign in to comment.