fixed report show print issue

This commit is contained in:
Cihan Şentürk 2025-02-26 12:53:00 +03:00 committed by GitHub
parent 00989224b9
commit 003453e9e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -251,7 +251,7 @@ abstract class Report
public function show()
{
return view($this->views['show'])->with('class', $this);
return view($this->views['show'], ['print' => false])->with('class', $this);
}
public function print()

View File

@ -49,7 +49,7 @@
<div class="flex items-center">
{{ $class->row_names[$table_key][$id] }}
@if (! $print && array_sum($parent_row_values) != array_sum($class->row_values[$table_key][$id]))
@if (empty($print) && array_sum($parent_row_values) != array_sum($class->row_values[$table_key][$id]))
<button type="button" class="align-text-top flex" node="child-{{ $id }}" onClick="toggleSub('child-{{ $id }}', event)">
<span class="material-icons transform rotate-90 transition-all text-lg leading-none mt-.05">expand_less</span>
</button>