Add production orders page
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m20s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m20s
This commit is contained in:
40
src/types.ts
40
src/types.ts
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user