code optimization

This commit is contained in:
2025-09-02 15:21:13 +05:30
parent 175f6eac4f
commit 4f8bf81a60
162 changed files with 2381 additions and 2822 deletions

View File

@@ -51,7 +51,6 @@ export default function ROIData() {
!isNaN(materialCost) && !isNaN(productionPeriod) && !isNaN(salvageValue) && !isNaN(sellingPrice) &&
!isNaN(shiftLength) && !isNaN(shiftsPerDay) && !isNaN(workingDaysPerYear) && productionCapacityData > 0) {
// const totalHoursPerYear = shiftLength * shiftsPerDay * workingDaysPerYear;
// const annualProductionUnits = productionCapacityData * totalHoursPerYear;
// const annualRevenue = annualProductionUnits * sellingPrice;

View File

@@ -100,7 +100,6 @@ export default function ThroughPutData() {
.forEach(storage => {
if (storage.activeTime > 0) {
// totalActiveTime += storage.activeTime;
//
}
});
}
@@ -178,7 +177,7 @@ export default function ThroughPutData() {
}
const allInactive = !anyArmActive && !anyVehicleActive && !anyMachineActive;
if (materials.length >= 0 && materialHistory.length > 0) {
if (materialHistory.length > 0) {
let totalCycleTimeSum = 0;
let cycleCount = 0;