生產工單BOM以及批號完善
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Successful in 57s
Koori-ERP-Deploy-System / deploy-production (push) Has been skipped

This commit is contained in:
2026-01-22 15:39:35 +08:00
parent 1ae21febb5
commit 1d134c9ad8
31 changed files with 2684 additions and 694 deletions

View File

@@ -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 "正常";
};
/**