@optifye/dashboard-core 6.6.12 → 6.6.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -5
- package/dist/index.mjs +1 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -40363,11 +40363,7 @@ var calculatePPH = (cycleTime, breaks = [], shiftHours = 0) => {
|
|
|
40363
40363
|
};
|
|
40364
40364
|
var calculateDayOutput = (pph, shiftHours, breaks = []) => {
|
|
40365
40365
|
if (pph === "") return "";
|
|
40366
|
-
|
|
40367
|
-
const totalBreakMinutes = safeBreaks.reduce((total, breakItem) => total + breakItem.duration, 0);
|
|
40368
|
-
const totalBreakHours = totalBreakMinutes / 60;
|
|
40369
|
-
const realWorkHours = shiftHours - totalBreakHours;
|
|
40370
|
-
return Math.round(pph * realWorkHours);
|
|
40366
|
+
return Math.round(pph * shiftHours);
|
|
40371
40367
|
};
|
|
40372
40368
|
var formatWorkspaceName = (name, lineId) => {
|
|
40373
40369
|
return getWorkspaceDisplayName(name, lineId);
|
package/dist/index.mjs
CHANGED
|
@@ -40333,11 +40333,7 @@ var calculatePPH = (cycleTime, breaks = [], shiftHours = 0) => {
|
|
|
40333
40333
|
};
|
|
40334
40334
|
var calculateDayOutput = (pph, shiftHours, breaks = []) => {
|
|
40335
40335
|
if (pph === "") return "";
|
|
40336
|
-
|
|
40337
|
-
const totalBreakMinutes = safeBreaks.reduce((total, breakItem) => total + breakItem.duration, 0);
|
|
40338
|
-
const totalBreakHours = totalBreakMinutes / 60;
|
|
40339
|
-
const realWorkHours = shiftHours - totalBreakHours;
|
|
40340
|
-
return Math.round(pph * realWorkHours);
|
|
40336
|
+
return Math.round(pph * shiftHours);
|
|
40341
40337
|
};
|
|
40342
40338
|
var formatWorkspaceName = (name, lineId) => {
|
|
40343
40339
|
return getWorkspaceDisplayName(name, lineId);
|