This commit is contained in:
2026-11-02 20:27:11 +02:00
parent b44378b899
commit badaada043
300 changed files with 17458 additions and 1056 deletions
+30
View File
@@ -96,3 +96,33 @@ export const qualityStates: Record<string, string> = {
reservations: 'Conforme com reservas',
nonconforming: 'Não conforme',
};
export type WarehouseHealth = {
lines: {
index: number;
unreserved_milli: number;
attention: string | null;
source_changed: boolean;
ready: boolean;
}[];
needs_reservation: boolean;
needs_check: boolean;
unconfirmed_deliveries: number;
delivery_ready: boolean;
};
export type WarehouseActions = {
canSubmit: boolean;
canReview: boolean;
canDeliver: boolean;
canManageReservation: boolean;
canReceive: boolean;
};
export const warehouseStateLabels: Record<string, string> = {
draft: 'Rascunho',
submitted: 'Submetida',
authorized: 'Autorizada',
partial: 'Parcialmente entregue',
delivered: 'Entregue',
closed: 'Encerrada',
rejected: 'Rejeitada',
cancelled: 'Saldo cancelado',
};