phase 2 dev

This commit is contained in:
Kevin Adametz 2026-04-22 16:01:27 +02:00
parent 5a7478907e
commit ba48745809
59 changed files with 2692 additions and 1994 deletions

View file

@ -121,6 +121,25 @@
</div>
</div>
@php
$priceTotalStored = $booking->getPriceTotalRaw();
$priceTotalComputed = round((float) $booking->getPriceRaw() + (float) $booking->getServiceTotal(true), 2);
@endphp
<div class="col-12">
<p class="small text-muted border rounded px-3 py-2 mb-3 bg-light">
<strong>price_total</strong> (gespeichert in DB):
{{ \App\Services\Util::_number_format($priceTotalStored ?? 0) }}&nbsp;
<span class="mx-2">·</span>
<strong>rechnerisch</strong> (Organisation + Vermittlung):
{{ \App\Services\Util::_number_format($priceTotalComputed) }}&nbsp;
@if($booking->isCanceled() && $booking->getPriceCanceledRaw() !== null)
<span class="mx-2">·</span>
<strong>laut Storno-Logik</strong> (= Storno-Betrag <code>price_canceled</code>):
{{ \App\Services\Util::_number_format((float) $booking->getPriceCanceledRaw()) }}&nbsp;
@endif
</p>
</div>
<div class="col-12">
<hr>
<div class="text-left mt-3">

View file

@ -185,7 +185,7 @@
},
{
data: 'id',
name: 'customer.id'
name: 'contacts.id'
},
{
data: 'firstname',

View file

@ -45,7 +45,7 @@
<p><strong>Kunde: </strong>
{{ $customer_mail->customer->salutation->name }} {{ $customer_mail->customer->title }} {{ $customer_mail->customer->firstname }} {{ $customer_mail->customer->name }}
@if($customer_mail->booking)
({{$customer_mail->booking->lead_id}})
({{$customer_mail->booking->inquiry_id}})
@endif
</p>
@endif

View file

@ -22,7 +22,7 @@
{{-- @endif --}}
</td>
<td align="left" style="color: #000; padding:0.5rem">
Buchungsnummer: <strong>{{ $booking->lead_id }}</strong><br />
Buchungsnummer: <strong>{{ $booking->inquiry_id }}</strong><br />
Buchungsdatum: <strong>{{ _format_date($booking->booking_date) }}</strong><br /><br />
Reisetermin: <strong>{{ _format_date($booking->start_date) }} -
{{ _format_date($booking->end_date) }}</strong><br />

View file

@ -35,7 +35,7 @@
</tr>
<tr>
<td>Buchungsnummer:</td>
<td><strong>{{ $booking->lead_id }}</strong></td>
<td><strong>{{ $booking->inquiry_id }}</strong></td>
</tr>
<tr>
<td>Buchungsdatum:</td>