update
This commit is contained in:
@@ -47,6 +47,7 @@ import {
|
||||
import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';
|
||||
import { useParams, useNavigate } from 'react-router-dom';
|
||||
import DashboardLayout from '../components/dashboard/DashboardLayout';
|
||||
import GermanDateField from '../components/shared/GermanDateField';
|
||||
import { useNotification } from '../contexts/NotificationContext';
|
||||
import { usePermissionContext } from '../contexts/PermissionContext';
|
||||
import { bestellungApi } from '../services/bestellung';
|
||||
@@ -417,11 +418,11 @@ export default function BestellungDetail() {
|
||||
curY += 3;
|
||||
}
|
||||
|
||||
// ── Besteller block ──
|
||||
// ── Kontaktperson (Besteller) block ──
|
||||
if (bestellung.besteller_name) {
|
||||
doc.setFontSize(10);
|
||||
doc.setFont('helvetica', 'bold');
|
||||
doc.text('Besteller', 10, curY);
|
||||
doc.text('Kontaktperson', 10, curY);
|
||||
curY += 5;
|
||||
const nameWithRank = bestellung.besteller_dienstgrad
|
||||
? `${kurzDienstgrad(bestellung.besteller_dienstgrad)} ${bestellung.besteller_name}`
|
||||
@@ -1012,13 +1013,11 @@ export default function BestellungDetail() {
|
||||
{/* Inline Add Reminder Form */}
|
||||
{reminderFormOpen && (
|
||||
<Box sx={{ display: 'flex', gap: 1, mt: 2, alignItems: 'flex-end' }}>
|
||||
<TextField
|
||||
<GermanDateField
|
||||
size="small"
|
||||
type="date"
|
||||
label="Fällig am"
|
||||
InputLabelProps={{ shrink: true }}
|
||||
value={reminderForm.faellig_am}
|
||||
onChange={(e) => setReminderForm((f) => ({ ...f, faellig_am: e.target.value }))}
|
||||
onChange={(iso) => setReminderForm((f) => ({ ...f, faellig_am: iso }))}
|
||||
/>
|
||||
<TextField
|
||||
size="small"
|
||||
|
||||
Reference in New Issue
Block a user