Add in RCC toggle & use parts threshold inclusion.

This commit is contained in:
Patrick Fic
2026-05-05 12:02:20 -07:00
parent c63a33c83e
commit 946fd03fa6
16 changed files with 177 additions and 76 deletions

View File

@@ -213,5 +213,10 @@
"title": "Release Notes for 1.6.0-beta.2",
"date": "05/04/2026",
"notes": "New Features:\r\n* Added projected targets for SGI claims.\r\n"
},
"1.6.0-beta.3": {
"title": "Release Notes for 1.6.0-beta.3",
"date": "05/05/2026",
"notes": "New Features:\r\n* Added a toggle for SGI RCC Claims to set targets to $0.\r\n* Added handling for used parts thresholds for SGI claims. Please re-import previous jobs for accurate scoring."
}
}

View File

@@ -687,6 +687,11 @@ function SGI_V1Ruleset(jobline, joblines) {
jobline.ignore = true;
}
//Is it the use parts line threshold? Added at the end to undo the 900500 lines.
if (jobline.line_desc.toUpperCase().includes("USED PARTS THRESHOLD")) {
jobline.ignore = false;
}
return jobline;
}

View File

@@ -8,7 +8,7 @@ const log = require("electron-log");
const contextMenu = require("electron-context-menu");
const Sentry = require("@sentry/electron/main");
const enableDevTools = true; // Always enable dev tools (was: isDev || process.env.ELECTRON_ENABLE_DEVTOOLS === "1")
const enableDevTools = isDev || process.env.ELECTRON_ENABLE_DEVTOOLS === "1"; // Always enable dev tools (was: isDev || process.env.ELECTRON_ENABLE_DEVTOOLS === "1")
//const Nucleus = require("nucleus-nodejs");
require("./ipc-main-handler");
@@ -204,7 +204,7 @@ function createWindow() {
// Open the DevTools when explicitly enabled.
if (enableDevTools) {
mainWindow.webContents.openDevTools({
mode: "detach"
// mode: "detach"
});
}