Add production orders page
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m20s

This commit is contained in:
Cauê Faleiros
2026-07-02 10:07:13 -03:00
parent 1b5a8556ba
commit caea53b94d
9 changed files with 705 additions and 2 deletions

View File

@@ -25,6 +25,46 @@ export interface StockData {
updated_at?: string;
}
export type ProductionOrderStatus = 'open' | 'in_progress' | 'finished' | 'canceled' | string;
export interface ProductionOrderMarker {
label: string;
color?: string | null;
}
export interface ProductionOrderItem {
id: number;
tinyId: string;
number: string;
status: ProductionOrderStatus;
statusLabel: string;
orderReference: string;
issueDate: string | null;
expectedDate: string | null;
productSku: string;
productDescription: string;
quantity: number;
unit: string;
integrationStatus: string;
markers: ProductionOrderMarker[];
createdAt: string | null;
updatedAt: string | null;
}
export interface ProductionOrderCounts {
all: number;
open: number;
in_progress: number;
finished: number;
canceled: number;
[key: string]: number;
}
export interface ProductionOrderSummary {
orders: ProductionOrderItem[];
counts: ProductionOrderCounts;
}
export interface DateRange {
start: Date;
end: Date;