fixed report show print issue
This commit is contained in:
parent
00989224b9
commit
003453e9e0
|
|
@ -251,7 +251,7 @@ abstract class Report
|
||||||
|
|
||||||
public function show()
|
public function show()
|
||||||
{
|
{
|
||||||
return view($this->views['show'])->with('class', $this);
|
return view($this->views['show'], ['print' => false])->with('class', $this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function print()
|
public function print()
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
|
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
{{ $class->row_names[$table_key][$id] }}
|
{{ $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)">
|
<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>
|
<span class="material-icons transform rotate-90 transition-all text-lg leading-none mt-.05">expand_less</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue