Merge branch 'master' of github.com:akaunting/akaunting
This commit is contained in:
commit
1c53fe607e
47
public/css/print.css
vendored
47
public/css/print.css
vendored
@ -91,7 +91,7 @@ th, td {
|
||||
|
||||
.pr-2 {
|
||||
padding-right: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.pl-2 {
|
||||
padding-left: 16px;
|
||||
@ -136,6 +136,10 @@ th, td {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.text-left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.text-right {
|
||||
text-align: right;
|
||||
}
|
||||
@ -192,7 +196,7 @@ th, td {
|
||||
|
||||
.d-note {
|
||||
width: 80%;
|
||||
background-color: #e5e5e5;
|
||||
background-color: #e5e5e5;
|
||||
}
|
||||
|
||||
/*!
|
||||
@ -285,12 +289,12 @@ th, td {
|
||||
*/
|
||||
|
||||
.m-first-column {
|
||||
padding-top: 35px;
|
||||
padding-top: 35px;
|
||||
padding-bottom:48px;
|
||||
}
|
||||
|
||||
.m-logo {
|
||||
padding-top: 10px;
|
||||
padding-top: 10px;
|
||||
padding-bottom: -36px;
|
||||
}
|
||||
|
||||
@ -337,4 +341,37 @@ th, td {
|
||||
* Print Template - Modern ------------ Finish
|
||||
=========================================================
|
||||
|
||||
*/
|
||||
=========================================================
|
||||
* Print Reports ------------ Start
|
||||
=========================================================
|
||||
|
||||
*/
|
||||
|
||||
.rp-border-top-1 {
|
||||
border-top: 1px solid #3c3f72;
|
||||
}
|
||||
|
||||
.rp-border-bottom-1 {
|
||||
border-bottom: 1px solid #3c3f72;
|
||||
}
|
||||
|
||||
|
||||
.rp-float-left {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.rp-float-right {
|
||||
float: right;
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
=========================================================
|
||||
* Print Reports ------------ Finish
|
||||
=========================================================
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
<body onload="window.print();">
|
||||
@stack('body_start')
|
||||
|
||||
@yield('content')
|
||||
@yield('content')
|
||||
|
||||
@stack('body_end')
|
||||
</body>
|
||||
|
@ -2,12 +2,12 @@
|
||||
|
||||
@section('new_button')
|
||||
<span>
|
||||
<a href="{{ url($class->getUrl('print')) }}" target="_blank" class="btn btn-white btn-sm">
|
||||
<a href="{{ url($class->getUrl('print')) }}" target="_blank" class="btn btn-white header-button-top btn-sm">
|
||||
<span class="fa fa-print"></span> {{ trans('general.print') }}
|
||||
</a>
|
||||
</span>
|
||||
<span>
|
||||
<a href="{{ url($class->getUrl('export')) }}" class="btn btn-white btn-sm">
|
||||
<a href="{{ url($class->getUrl('export')) }}" class="btn btn-white header-button-top btn-sm">
|
||||
<span class="fa fa-upload"></span> {{ trans('general.export') }}
|
||||
</a>
|
||||
</span>
|
||||
|
@ -1,8 +1,11 @@
|
||||
@extends('layouts.print')
|
||||
|
||||
@section('title', $class->model->name)
|
||||
|
||||
@section('content')
|
||||
|
||||
<h2>{{ $class->model->name }}</h2>
|
||||
|
||||
{{ setting('company.name') }}
|
||||
|
||||
@if($class->model->settings->chart)
|
||||
@include($class->views['chart'])
|
||||
@endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
<div class="table-responsive overflow-auto">
|
||||
<div class="table-responsive overflow-auto mt-4">
|
||||
<table class="table align-items-center">
|
||||
@include($class->views['table.header'])
|
||||
<tbody>
|
||||
|
@ -1,9 +1,9 @@
|
||||
@php $row_total = 0; @endphp
|
||||
<tr>
|
||||
<td class="report-column">{{ $class->getTableRowList()[$id] }}</td>
|
||||
<td class="report-column rp-border-top-1">{{ $class->getTableRowList()[$id] }}</td>
|
||||
@foreach($items as $item)
|
||||
@php $row_total += $item; @endphp
|
||||
<td class="report-column text-right px-0">@money($item, setting('default.currency'), true)</td>
|
||||
<td class="report-column text-right px-0 rp-border-top-1">@money($item, setting('default.currency'), true)</td>
|
||||
@endforeach
|
||||
<td class="report-column text-right">@money($row_total, setting('default.currency'), true)</td>
|
||||
<td class="report-column text-right rp-border-top-1">@money($row_total, setting('default.currency'), true)</td>
|
||||
</tr>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -2,13 +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">
|
||||
<h5>{{ trans_choice('general.totals', 1) }}</h5>
|
||||
</th>
|
||||
<th class="report-column text-right rp-border-bottom-1">{{ trans_choice('general.totals', 1) }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th class="report-column">{{ trans('reports.net') }}</th>
|
||||
<th class="report-column rp-border-top-1 text-left">{{ trans('reports.net') }}</th>
|
||||
@php $total_total = 0; @endphp
|
||||
@foreach($class->totals[$table] as $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>
|
||||
|
@ -1,5 +1,7 @@
|
||||
<thead class="border-top-style">
|
||||
<tr>
|
||||
<th colspan="{{ count($class->dates) + 2 }}">{{ $table }}</th>
|
||||
<th class="rp-float-left" colspan="{{ count($class->dates) + 2 }}">
|
||||
<h4>{{ $table }}</h4>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
Loading…
x
Reference in New Issue
Block a user