reports print view updated

This commit is contained in:
batuhanbas
2020-01-17 16:26:08 +03:00
parent 072de6b7e2
commit 84a37fd524
13 changed files with 74 additions and 34 deletions

View File

@@ -2,11 +2,11 @@
<table class="table align-items-center">
<tfoot class="border-top-style">
<tr>
<th class="report-column">{{ trans('reports.net_profit') }}</th>
<th class="report-column rp-border-top-1">{{ trans('reports.net_profit') }}</th>
@foreach($class->net_profit as $profit)
<th class="report-column text-right px-0">@money($profit, setting('default.currency'), true)</th>
<th class="report-column text-right px-0 rp-border-top-1">@money($profit, setting('default.currency'), true)</th>
@endforeach
<th class="report-column text-right">
<th class="report-column text-right rp-border-top-1">
@money(array_sum($class->net_profit), setting('default.currency'), true)
</th>
</tr>

View File

@@ -2,11 +2,11 @@
<table class="table align-items-center">
<thead class="border-top-style">
<tr>
<th class="report-column text-right"></th>
<th class="report-column text-right rp-border-bottom-1"></th>
@foreach($class->dates as $date)
<th class="report-column text-right px-0">{{ $date }}</th>
<th class="report-column text-right px-0 rp-border-bottom-1">{{ $date }}</th>
@endforeach
<th class="report-column text-right">
<th class="report-column text-right rp-border-bottom-1">
{{ trans_choice('general.totals', 1) }}
</th>
</tr>

View File

@@ -1,11 +1,11 @@
<tfoot>
<tr>
<th class="report-column">{{ trans_choice('general.totals', 1) }}</th>
<th class="report-column rp-border-top-1 text-left">{{ trans_choice('general.totals', 1) }}</th>
@php $total_total = 0; @endphp
@foreach($class->totals[$table] as $date => $total)
@php $total_total += $total; @endphp
<th class="report-column text-right px-0">@money($total, setting('default.currency'), true)</th>
<th class="report-column text-right px-0 rp-border-top-1">@money($total, setting('default.currency'), true)</th>
@endforeach
<th class="report-column text-right">@money($total_total, setting('default.currency'), true)</th>
<th class="report-column text-right rp-border-top-1">@money($total_total, setting('default.currency'), true)</th>
</tr>
</tfoot>

View File

@@ -1,7 +1,7 @@
<thead class="border-top-style">
<tr>
<th colspan="{{ count($class->dates) + 2 }}">
<h5>{{ $table }}</h5>
<th class="rp-float-left" colspan="{{ count($class->dates) + 2 }}">
<h4>{{ $table }}</h4>
</th>
</tr>
</thead>