This commit is contained in:
seb
2026-10-05 01:01:03 +02:00
parent 81b59fd309
commit b766769634
59 changed files with 903 additions and 280 deletions

View File

@@ -9,6 +9,12 @@ import customergroupAutomat from '../../automats/customergroupAutomat';
import deliveryAutomat from '../../automats/deliveryAutomat';
import quoteAutomat from '../../automats/quoteAutomat';
import orderAutomat from '../../automats/orderAutomat';
import {
GREEN_PANEL,
ORANGE_PANEL,
PURPLE_PANEL,
YELLOW_PANEL,
} from '../../colors';
/** Groups that are not sales customers (filter client-side). */
export const EXCLUDED_CUSTOMER_GROUP_NAMES = new Set(['Lieferanten', 'POS']);
@@ -559,9 +565,9 @@ export function manifestConfig(kind) {
getPathLabel: 'GET /api/delivery/:id',
postPathLabel: 'POST /api/delivery',
patchPathLabel: 'PATCH /api/delivery/:id',
listColor: '#fed7aa',
headerColor: '#fed7aa',
linesColor: '#bbf7d0',
listColor: ORANGE_PANEL,
headerColor: ORANGE_PANEL,
linesColor: GREEN_PANEL,
requirePartyBeforeLines: false,
listAutomat: deliveryAutomat,
partiesByIdFromList: (parties) =>
@@ -595,9 +601,9 @@ export function manifestConfig(kind) {
getPathLabel: 'GET /api/quote/:id',
postPathLabel: 'POST /api/quote',
patchPathLabel: 'PATCH /api/quote/:id',
listColor: '#fde68a',
headerColor: '#fde68a',
linesColor: '#bbf7d0',
listColor: YELLOW_PANEL,
headerColor: YELLOW_PANEL,
linesColor: GREEN_PANEL,
requirePartyBeforeLines: false,
listAutomat: quoteAutomat,
partiesByIdFromList: (parties) =>
@@ -628,9 +634,9 @@ export function manifestConfig(kind) {
getPathLabel: 'GET /api/order/:id',
postPathLabel: 'POST /api/order',
patchPathLabel: 'PATCH /api/order/:id',
listColor: '#c4b5fd',
headerColor: '#c4b5fd',
linesColor: '#bbf7d0',
listColor: PURPLE_PANEL,
headerColor: PURPLE_PANEL,
linesColor: GREEN_PANEL,
requirePartyBeforeLines: false,
listAutomat: orderAutomat,
partiesByIdFromList: (parties) =>