生產工單BOM以及批號完善
This commit is contained in:
@@ -36,10 +36,8 @@ export const getSafetyStockStatus = (
|
||||
safetyStock: number | null | undefined
|
||||
): SafetyStockStatus => {
|
||||
if (!safetyStock || safetyStock === 0) return "正常";
|
||||
const ratio = currentStock / safetyStock;
|
||||
if (ratio >= 1.2) return "正常";
|
||||
if (ratio >= 1.0) return "接近";
|
||||
return "低於";
|
||||
if (currentStock < safetyStock) return "低於";
|
||||
return "正常";
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user