Reserve material lots from cut plans
This commit is contained in:
30
src/types.ts
30
src/types.ts
@@ -78,6 +78,18 @@ export interface ProductionOrderStep {
|
||||
color: string;
|
||||
}
|
||||
|
||||
export interface ProductionOrderLotReservation {
|
||||
id: number;
|
||||
lotId: number;
|
||||
materialKey: string;
|
||||
quantity: number;
|
||||
consumedQuantity: number;
|
||||
status: string;
|
||||
lotProduct: string;
|
||||
lotUnit: string;
|
||||
lotSupplier: string;
|
||||
}
|
||||
|
||||
export interface ProductionOrderItem {
|
||||
id: number;
|
||||
tinyId: string;
|
||||
@@ -104,6 +116,7 @@ export interface ProductionOrderItem {
|
||||
rejectedQuantity: number;
|
||||
finishedQuantity: number | null;
|
||||
qualityNotes: string;
|
||||
lotReservations: ProductionOrderLotReservation[];
|
||||
markers: ProductionOrderMarker[];
|
||||
components: ProductionOrderComponent[];
|
||||
steps: ProductionOrderStep[];
|
||||
@@ -143,10 +156,25 @@ export type ProductionOrderPayload = {
|
||||
quantity: number;
|
||||
unit?: string;
|
||||
integrationStatus?: string;
|
||||
components?: Array<{
|
||||
componentTinyId?: string;
|
||||
componentSku?: string;
|
||||
componentName: string;
|
||||
quantityPerUnit: number;
|
||||
totalQuantity?: number;
|
||||
unit?: string;
|
||||
}>;
|
||||
markers?: ProductionOrderMarkerPayload[];
|
||||
metadata?: Record<string, unknown>;
|
||||
};
|
||||
|
||||
export type CutPlanLotReservationPayload = {
|
||||
lotId: number;
|
||||
materialKey: string;
|
||||
quantity: number;
|
||||
cutPlanReference?: string;
|
||||
};
|
||||
|
||||
export type ProductionOrderExecutionPayload = {
|
||||
actualCutQuantity?: number | null;
|
||||
rejectedQuantity?: number | null;
|
||||
@@ -395,6 +423,8 @@ export interface SupplyLot {
|
||||
supplier: string;
|
||||
invoice: string;
|
||||
status: string;
|
||||
reservedQuantity: number;
|
||||
availableQuantity: number;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user