feat(documents): Mietvertrag, Auftragsbestätigung und Rechnung zur Buchung
- Mietvertrag als PDF in drei Varianten (Mit Lieferung, Selbstabholer, Truhe), Seite 2+ mit der AGB aus app/agb.php – derselbe Text wie /agb. - Auftragsbestätigung als PDF, ebenfalls in drei Varianten. - PDF-Erzeuger ohne Fremdbibliothek (app/pdf.php, Helvetica + JPEG für die Unterschrift); Layout in app/documents.php. - Unterschrift auf dem Tablet (views/document_sign.php, Canvas -> JPEG) wird ins PDF gesetzt; Unterlagen lassen sich ansehen, drucken und per Mail an den Kunden senden (mail_send_attachment()). - Rechnung aus Lexware als PDF-Upload; Ablage unter storage/documents/<booking_id>/ (per .htaccess gesperrt). - Aufbewahrung: documents_cleanup() im Cron löscht einen Monat nach Mietende (app.document_retention_days), inklusive verwaister Dateien. - Migrationen per HTTP (/migrate?token=…, app/migrate.php), weil das Hosting kein SSH hat; deploy.sh ruft die Route nach dem Sync auf. - Schema: booking_documents (Migration 012, auch in schema.sql), Doku in README/ROADMAP/docs/todo_kundenemail_2026-11-30-unterlagen.md. Enthält außerdem die bislang nicht committeten Anpassungen in bootstrap.php und app.js/pages.php, die im selben Arbeitsstand lagen.
This commit is contained in:
parent
3e34a6c839
commit
2de8e95c15
24 changed files with 2412 additions and 49 deletions
|
|
@ -1231,3 +1231,69 @@ a .ico, button .ico { pointer-events: none; }
|
|||
@media (min-width: 961px) {
|
||||
.auth-panel { padding-bottom: max(80px, calc(56px + env(safe-area-inset-bottom))); }
|
||||
}
|
||||
|
||||
/* Buchungsunterlagen (Mietvertrag, Auftragsbestätigung, Rechnung) ---------- */
|
||||
.docs-hint {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin: 0 0 14px;
|
||||
padding: 9px 12px;
|
||||
border-radius: 10px;
|
||||
background: var(--ice-100, #eaf3fc);
|
||||
color: var(--brand-700, #114c86);
|
||||
font-size: .82rem;
|
||||
}
|
||||
.docs-hint .ico { width: 16px; height: 16px; flex: none; }
|
||||
.docs-create,
|
||||
.docs-upload {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-end;
|
||||
gap: 12px;
|
||||
padding: 14px;
|
||||
margin-bottom: 14px;
|
||||
border: 1px solid var(--line-soft, #e6eef4);
|
||||
border-radius: 12px;
|
||||
background: #fbfdff;
|
||||
}
|
||||
.docs-create .field { min-width: 180px; }
|
||||
.docs-create__actions { display: flex; flex-wrap: wrap; gap: 9px; }
|
||||
.docs-upload { margin-top: 4px; }
|
||||
.docs-upload .field { flex: 1 1 240px; }
|
||||
.docs-upload input[type="file"] { font-size: .85rem; }
|
||||
|
||||
/* Unterschrift auf dem Tablet --------------------------------------------- */
|
||||
.sign-page { background: #f4f9fe; }
|
||||
.sign-shell {
|
||||
max-width: 780px;
|
||||
margin: 0 auto;
|
||||
padding: clamp(16px, 4vw, 38px);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 18px;
|
||||
}
|
||||
.sign-head h1 { font-size: clamp(1.3rem, 4vw, 1.8rem); margin: 4px 0 6px; }
|
||||
.sign-pad {
|
||||
position: relative;
|
||||
border: 2px dashed #b9d3ea;
|
||||
border-radius: 14px;
|
||||
background: #fff;
|
||||
overflow: hidden;
|
||||
touch-action: none;
|
||||
}
|
||||
.sign-pad canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; }
|
||||
.sign-pad__hint {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
margin: 0;
|
||||
color: #9fb4c6;
|
||||
font-size: .95rem;
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
}
|
||||
.sign-pad--ink .sign-pad__hint { display: none; }
|
||||
.sign-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
|
||||
.sign-actions .btn { flex: 1 1 160px; justify-content: center; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue