Skip to content

Commit

Permalink
#42: Correct "empty" timeframes display
Browse files Browse the repository at this point in the history
  • Loading branch information
lat9 committed Apr 25, 2023
1 parent 79d54af commit ad0a355
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions zc_plugins/SalesReport/v4.0.0/admin/stats_sales_report2.php
Original file line number Diff line number Diff line change
Expand Up @@ -979,16 +979,14 @@
?>
</tr>
<?php
} elseif (DISPLAY_EMPTY_TIMEFRAMES) {
// don't display anything
} else {
} elseif (DISPLAY_EMPTY_TIMEFRAMES !== false) {
// display the "no data" line
$colspan = 12;
if ($display_tax) {
if ($display_tax === true) {
$colspan += 2;
}
if ($order_total_validation) {
$colspan += 1;
if ($order_total_validation === true) {
$colspan++;
}
?>
<tr class="totalRow">
Expand Down

0 comments on commit ad0a355

Please sign in to comment.