Uhrzeiten, Miete und Lieferkosten ergänzen; Server-Stand übernehmen

- bookings um optionale start_time/end_time sowie rent_cents und
  delivery_cents erweitert; Gesamtbetrag ist Miete + Lieferkosten
  (Migration 003, Schema und Doku nachgezogen)
- Formular, Detailansicht, Panel, Kalender und Kopiertext zeigen
  Uhrzeiten und die getrennten Beträge
- Live-Stand nachgezogen: Impressum/Datenschutz, Privacy-Cleanup im
  Cron-Lauf, Löschsperre für Buchungen mit Rechnung
- Cache-Buster auf Version 10 erhöht
This commit is contained in:
torsten 2026-11-18 20:59:17 +01:00
parent 672df3d0a7
commit d47a72820d
24 changed files with 1157 additions and 92 deletions

View file

@ -128,7 +128,8 @@ $minWidth = match ($view) {
$showMeta = $view === 'day' || ($view === 'week' && $geo['span'] >= 2);
$label = $view === 'month' ? truncate((string) $booking['customer_name'], 18) : (string) $booking['customer_name'];
$aria = $booking['customer_name'] . ', ' . $booking['trailer_label'] . ', '
. fmt_date($booking['start_date']) . ' bis ' . fmt_date($booking['end_date'])
. fmt_date_with_time($booking['start_date'], $booking['start_time'] ?? null) . ' bis '
. fmt_date_with_time($booking['end_date'], $booking['end_time'] ?? null)
. ', ' . $booking['employee_name'] . ($cancelled ? ', storniert' : '');
?>
<a class="cal-bar<?= $cancelled ? ' is-cancelled' : '' ?><?= $geo['cut_start'] ? ' is-cut-start' : '' ?><?= $geo['cut_end'] ? ' is-cut-end' : '' ?><?= $geo['span'] <= 1 ? ' is-tiny' : '' ?>"
@ -141,10 +142,10 @@ $minWidth = match ($view) {
data-days="<?= days_between($booking['start_date'], $booking['end_date']) + 1 ?>"
style="--left: <?= number_format($geo['left'], 5, '.', '') ?>%; --width: <?= number_format($geo['width'], 5, '.', '') ?>%; --top: <?= number_format($geo['top'], 5, '.', '') ?>%; --height: <?= number_format($geo['height'], 5, '.', '') ?>%; --bar: <?= e($booking['trailer_color']) ?>; --bar-text: <?= e(contrast_color($booking['trailer_color'])) ?>;"
aria-label="<?= e($aria) ?>"
title="<?= e($booking['customer_name'] . ' · ' . fmt_date_range($booking['start_date'], $booking['end_date']) . ' · ' . $booking['employee_name'] . ($cancelled ? ' · storniert' : '')) ?>">
title="<?= e($booking['customer_name'] . ' · ' . fmt_date_with_time($booking['start_date'], $booking['start_time'] ?? null) . ' – ' . fmt_date_with_time($booking['end_date'], $booking['end_time'] ?? null) . ' · ' . $booking['employee_name'] . ($cancelled ? ' · storniert' : '')) ?>">
<span class="cal-bar__name"><?= e($label) ?></span>
<?php if ($showMeta): ?>
<span class="cal-bar__meta"><?= e($view === 'day' ? fmt_date_range($booking['start_date'], $booking['end_date']) : $booking['employee_name']) ?><?= $view === 'day' ? ' · ' . e($booking['employee_name']) : '' ?></span>
<span class="cal-bar__meta"><?= e($view === 'day' ? fmt_date_with_time($booking['start_date'], $booking['start_time'] ?? null) . ' – ' . fmt_date_with_time($booking['end_date'], $booking['end_time'] ?? null) : $booking['employee_name']) ?><?= $view === 'day' ? ' · ' . e($booking['employee_name']) : '' ?></span>
<?php endif; ?>
<?php if ($view === 'day'): ?>
<span class="cal-bar__meta cal-bar__meta--soft"><?= e(booking_kind_label((string) $booking['kind'])) ?> · <?= e(fmt_money((int) $booking['total_cents'])) ?></span>