chore(booking): Bezahlt-Kennzeichen per Migration entfernen
Migration 011 droppt bookings.paid portabel (MySQL/MariaDB), damit Neuinstallationen ohne die Spalte nicht abbrechen.
This commit is contained in:
parent
11bb83c66c
commit
7c0a7c7cd4
2 changed files with 24 additions and 1 deletions
|
|
@ -64,7 +64,8 @@ $backUrl = $isEdit ? '/bookings/' . (int) $booking['id'] : '/calendar';
|
|||
<?php endif; ?>
|
||||
|
||||
<form class="booking-form" method="post" action="<?= e(url($isEdit ? '/bookings/' . (int) $booking['id'] . '/edit' : '/bookings/new')) ?>"
|
||||
data-booking-form data-availability-url="<?= e(url('/api/availability')) ?>" data-exclude="<?= $isEdit ? (int) $booking['id'] : 0 ?>">
|
||||
data-booking-form data-mode="<?= $isEdit ? 'edit' : 'new' ?>"
|
||||
data-availability-url="<?= e(url('/api/availability')) ?>" data-exclude="<?= $isEdit ? (int) $booking['id'] : 0 ?>">
|
||||
<?= csrf_field() ?>
|
||||
|
||||
<div class="form-layout">
|
||||
|
|
@ -239,6 +240,7 @@ $backUrl = $isEdit ? '/bookings/' . (int) $booking['id'] : '/calendar';
|
|||
<em class="muted small">Nummer eintragen setzt „Rechnung: JA" automatisch. „Nein" bleibt ohne Nummer.</em>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="field">
|
||||
<span>Noch zu zahlen</span>
|
||||
<output class="due-output" data-due><?= e(fmt_money(due_cents(parse_money((string) $values['rent']) + parse_money((string) $values['delivery']), parse_money((string) $values['deposit'])))) ?></output>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue