Extend invoices and invoice items to keep more information.

This commit is contained in:
2025-01-31 13:04:59 +01:00
parent e2240c017d
commit d8afe4960e
20 changed files with 1475 additions and 640 deletions

View File

@@ -28,10 +28,17 @@
<div class="clear"></div>
<div class="left" style="width: 110mm; height:15mm;">
{{ __('invoice.Invoice Number short') }}: {{ $invoice->number }}
@php
$height = ($invoice->project) ? 25 : 15;
@endphp
<div class="left" style="width: 110mm; height:{{ $height }}mm;">
{{ __('invoice.Invoice Number short') }}: {{ $invoice->number }}<br/>
{{ \App\Enum\InvoiceTypeCode::label($invoice->type) }} {{ (in_array($invoice->type, ['326', '875'])) ? $invoice->project_count : '' }}
@if($invoice->project)
<br/>{{ $invoice->project->name }} - {{ __('project.Project Number') }}: {{ $invoice->project->project_number }}
@endif
</div>
<div class="right" style=" width: 60mm; height:15mm;">
<div class="right" style=" width: 60mm; height:{{ $height }}mm;">
<div class="left">{{ __('common.Date') }}:</div>
<div class="right text-right">{{ $invoice->created }}</div>
</div>