Skip to content

Commit

Permalink
Fixed report for query with no entries
Browse files Browse the repository at this point in the history
  • Loading branch information
korridor committed Nov 1, 2024
1 parent f4cfeaa commit 4224fdd
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions resources/views/reports/time-entry-aggregate-index-excel.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,27 @@
@else
<td style="border: 1px solid black; font-weight: bold;" data-type="{{ DataType::TYPE_FORMULA }}"
data-format="[hh]:mm:ss">
=SUM(C2:C{{ $counter }})
@if($counter > 1)
=SUM(C2:C{{ $counter }})
@else
=0
@endif
</td>
<td style="border: 1px solid black; font-weight: bold;" data-type="{{ DataType::TYPE_FORMULA }}"
data-format="{{ NumberFormat::FORMAT_NUMBER_00 }}">
=SUM(D2:D{{ $counter }})
@if($counter > 1)
=SUM(D2:D{{ $counter }})
@else
=0
@endif
</td>
<td style="border: 1px solid black; font-weight: bold;" data-type="{{ DataType::TYPE_FORMULA }}"
data-format="{{ NumberFormat::FORMAT_NUMBER_COMMA_SEPARATED1 }}">
=SUM(E2:E{{ $counter }})
@if($counter > 1)
=SUM(E2:E{{ $counter }})
@else
=0
@endif
</td>
@endif
</tr>
Expand Down

0 comments on commit 4224fdd

Please sign in to comment.