This commit is contained in:
seb
2026-10-18 19:36:56 +02:00
parent 587170ce9b
commit 94f385e753
3 changed files with 15 additions and 4 deletions

View File

@@ -527,6 +527,8 @@ export async function buildManifestBody(
if (!Number.isNaN(pid)) {
body[partyField] = pid;
}
} else if (kind === 'order') {
throw new Error('Für eine Bestellung ist ein Kunde erforderlich.');
} else if (isEdit) {
body[partyField] = null;
}