Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

refactor: revert changes to paperless lib

Brad Barbin9b30b926946f
diff --git a/packages/ee/src/paperless-parts/lib/lib.ts b/packages/ee/src/paperless-parts/lib/lib.ts
index d260b957aa..0ef4094085 100644
--- a/packages/ee/src/paperless-parts/lib/lib.ts
+++ b/packages/ee/src/paperless-parts/lib/lib.ts
@@ -1947,15 +1947,15 @@ export async function createPartFromComponent(
operation
] of component.shop_operations.entries()) {
if (operation.category === "operation") {
- // Check if operation is ed
+ // Check if operation is blacklisted
const operationName =
operation.operation_definition_name ?? operation.name;
if (billOfProcessBlackList.length > 0 && operationName) {
- const isBlacklisted = billOfProcessBlackList.some((edName) =>
- operationName.toLowerCase().includes(edName.toLowerCase())
+ const isBlacklisted = billOfProcessBlackList.some((blacklistedName) =>
+ operationName.toLowerCase().includes(blacklistedName.toLowerCase())
);
if (isBlacklisted) {
- console.log(`Skipping ed operation: ${operationName}`);
+ console.log(`Skipping blacklisted operation: ${operationName}`);
continue;
}
}
@@ -2932,7 +2932,7 @@ export async function insertQuoteLines(
const operationName =
operation.operation_definition_name ?? operation.name;
- // Check
+ // Check blacklist
if (operationName && billOfProcessBlackList.length > 0) {
const isBlacklisted = billOfProcessBlackList.some((bl) =>
operationName.toLowerCase().includes(bl.toLowerCase())