import type { WorkflowConfig, WorkflowEntity } from '~/types/workflow' export const receptionConfig: WorkflowConfig = { entityName: 'reception', apiResource: 'receptions', steps: [ { label: 'Réception' }, { label: 'Pesée à plein', weighingMode: 'gross' }, { label: 'Sélection réception' }, { label: 'Pesée à vide', weighingMode: 'tare', isFinal: true } ], weighingLabels: { gross: 'Pesée à plein', tare: 'Pesée à vide' }, buildReceiptFilename: (entity: WorkflowEntity) => { const rec = entity as any return `${rec.identificationNumber ?? rec.id}_${rec.supplier?.name ?? 'fournisseur'}_${rec.licensePlate ?? 'immat'}.pdf` }, routePrefix: '/reception', toastPrefix: 'reception', dateField: 'receptionDate' } export const RECEPTION_STEP_LABELS = receptionConfig.steps.map(s => s.label)