Add shared Manifest UI for delivery, quote, and order.

Wire quote/order API clients and routes, then unify list/create/edit behind ManifestList/Form tiles so Lieferungen and Auftrag share one stack.
This commit is contained in:
seb
2026-08-06 20:08:56 +02:00
parent 8d50d083f5
commit 4896b1dc36
26 changed files with 1356 additions and 1103 deletions

View File

@@ -48,11 +48,19 @@ export default function SectionLayout({ sectionPath }) {
sectionPath === '/kunde' && rest && !knownSegments.has(rest);
const isLieferungDetail =
sectionPath === '/lieferung' && rest && !knownSegments.has(rest);
const isDetail = isArticleDetail || isKundeDetail || isLieferungDetail;
const isAngebotDoc =
sectionPath === '/auftrag' && rest && !knownSegments.has(rest);
const isDetail =
isArticleDetail || isKundeDetail || isLieferungDetail || isAngebotDoc;
const pageTitle = isDetail
const angebotLabel =
subNav?.find((item) => item.segment === '')?.label ?? 'Angebot';
let pageTitle = isDetail
? title
: (activeSub?.label ?? title);
if (pathname === '/auftrag/neu') pageTitle = 'Neues Angebot';
else if (isAngebotDoc) pageTitle = angebotLabel;
else if (pathname === '/auftrag/bestellung/neu') pageTitle = 'Neue Bestellung';
const showsRenameSwitch = activeSub?.segment === 'kategorien';