Connect supply planning to purchase needs
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 40s

This commit is contained in:
Cauê Faleiros
2026-07-13 12:06:50 -03:00
parent 8320f2ae35
commit 5b6a362bbd
6 changed files with 530 additions and 105 deletions

View File

@@ -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;