Batch-Reiter: FTP-Upload (primär) zurück, Tag+Kunde-Gruppen aufklappbar

- "Per FTP hochladen" als Primär-Aktion (wirkt auf Auswahl, ids an
  /skrift-orders/batch-build -> Backend), "In Produktion übernehmen"
  sekundär; dazu Versendet/Nicht versendet/Löschen.
- Gruppierung Tag → Kunde, beide aufklappbar, Gruppen-Kopf mit Haken
  (wählt alle in der Gruppe).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
s4luorth
2026-09-28 10:24:10 +02:00
parent 208d398034
commit c6c682d48f
2 changed files with 90 additions and 18 deletions

View File

@@ -1377,7 +1377,7 @@ const handler = (router, { services, getSchema, logger }) => {
const r = await fetch(`${BACKEND_URL}/api/batch/build`, {
method: 'POST',
headers: { 'Content-Type': 'application/json', 'X-API-Token': BACKEND_TOKEN },
body: JSON.stringify({ client_id: req.body?.client_id ?? null }),
body: JSON.stringify({ client_id: req.body?.client_id ?? null, ids: Array.isArray(req.body?.ids) ? req.body.ids : null }),
});
const txt = await r.text();
let data = null; try { data = txt ? JSON.parse(txt) : null; } catch { /* egal */ }