Connect supply planning to purchase needs
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 40s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 40s
This commit is contained in:
34
src/types.ts
34
src/types.ts
@@ -210,6 +210,30 @@ export interface SupplyMovement {
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface SupplyFabricPlan {
|
||||
id: number;
|
||||
material: string;
|
||||
color: string;
|
||||
quantityKg: number;
|
||||
supplier: string;
|
||||
priority: string;
|
||||
status: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface SupplyPurchaseNeed {
|
||||
material: string;
|
||||
plannedKg: number;
|
||||
stockKg: number;
|
||||
pendingKg: number;
|
||||
purchaseKg: number;
|
||||
priority: string;
|
||||
status: 'critical' | 'attention' | 'ok';
|
||||
suppliers: string[];
|
||||
colors: string[];
|
||||
}
|
||||
|
||||
export interface SupplyStats {
|
||||
totalQuantityKg: number;
|
||||
activeLots: number;
|
||||
@@ -223,6 +247,8 @@ export interface SupplySummary {
|
||||
receipts: SupplyReceipt[];
|
||||
lots: SupplyLot[];
|
||||
movements: SupplyMovement[];
|
||||
fabricPlans: SupplyFabricPlan[];
|
||||
purchaseNeeds: SupplyPurchaseNeed[];
|
||||
stats: SupplyStats;
|
||||
}
|
||||
|
||||
@@ -236,6 +262,14 @@ export type SupplyReceiptPayload = {
|
||||
notes?: string;
|
||||
};
|
||||
|
||||
export type SupplyFabricPlanPayload = {
|
||||
material: string;
|
||||
color?: string;
|
||||
quantityKg: number | string;
|
||||
supplier?: string;
|
||||
priority?: string;
|
||||
};
|
||||
|
||||
export interface DateRange {
|
||||
start: Date;
|
||||
end: Date;
|
||||
|
||||
Reference in New Issue
Block a user