Merge pull request #3265 from CihanSenturk/fix-report-show-print-issue
Fixed report show print issue
This commit is contained in:
commit
a8adeff326
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue