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: remove console.log

Brad Barbinf04922f70e4a
diff --git a/apps/erp/app/modules/shared/shared.models.ts b/apps/erp/app/modules/shared/shared.models.ts
index 0a46356aee..4b71275924 100644
--- a/apps/erp/app/modules/shared/shared.models.ts
+++ b/apps/erp/app/modules/shared/shared.models.ts
@@ -122,7 +122,6 @@ export const operationAttributeValidator = z
.refine(
(data) => {
if (data.type === "List") {
- console.log(data.listValues);
return (
Array.isArray(data.listValues) &&
data.listValues.length > 0 &&
diff --git a/apps/mes/app/routes/x+/record.$id.delete.tsx b/apps/mes/app/routes/x+/record.$id.delete.tsx
index e30b1d369d..4088d9bb22 100644
--- a/apps/mes/app/routes/x+/record.$id.delete.tsx
+++ b/apps/mes/app/routes/x+/record.$id.delete.tsx
@@ -28,10 +28,7 @@ export async function action({ params, request }: ActionFunctionArgs) {
userId,
});
- console.log(attributeDelete);
-
if (attributeDelete.error) {
- console.log(attributeDelete.error);
return json(
{ success: false },
await flash(
diff --git a/packages/database/src/swagger-docs-schema.ts b/packages/database/src/swagger-docs-schema.ts
index 52488c711c..33faf15128 100644
--- a/packages/database/src/swagger-docs-schema.ts
+++ b/packages/database/src/swagger-docs-schema.ts
@@ -8400,6 +8400,9 @@ export default {
{
$ref: "#/parameters/rowFilter.jobOperationsWithMakeMethods.tags",
},
+ {
+ $ref: "#/parameters/rowFilter.jobOperationsWithMakeMethods.procedureId",
+ },
{
$ref: "#/parameters/select",
},
@@ -23025,6 +23028,9 @@ export default {
{
$ref: "#/parameters/rowFilter.quoteOperationsWithMakeMethods.tags",
},
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationsWithMakeMethods.procedureId",
+ },
{
$ref: "#/parameters/select",
},
@@ -42789,6 +42795,186 @@ export default {
tags: ["department"],
},
},
+ "/jobOperationAttributeRecord": {
+ get: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.jobOperationAttributeId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.value",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.numericValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.booleanValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.userValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.updatedBy",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/order",
+ },
+ {
+ $ref: "#/parameters/range",
+ },
+ {
+ $ref: "#/parameters/rangeUnit",
+ },
+ {
+ $ref: "#/parameters/offset",
+ },
+ {
+ $ref: "#/parameters/limit",
+ },
+ {
+ $ref: "#/parameters/preferCount",
+ },
+ ],
+ responses: {
+ "200": {
+ description: "OK",
+ schema: {
+ items: {
+ $ref: "#/definitions/jobOperationAttributeRecord",
+ },
+ type: "array",
+ },
+ },
+ "206": {
+ description: "Partial Content",
+ },
+ },
+ tags: ["jobOperationAttributeRecord"],
+ },
+ post: {
+ parameters: [
+ {
+ $ref: "#/parameters/body.jobOperationAttributeRecord",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/preferPost",
+ },
+ ],
+ responses: {
+ "201": {
+ description: "Created",
+ },
+ },
+ tags: ["jobOperationAttributeRecord"],
+ },
+ delete: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.jobOperationAttributeId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.value",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.numericValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.booleanValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.userValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.updatedBy",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["jobOperationAttributeRecord"],
+ },
+ patch: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.jobOperationAttributeId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.value",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.numericValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.booleanValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.userValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationAttributeRecord.updatedBy",
+ },
+ {
+ $ref: "#/parameters/body.jobOperationAttributeRecord",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["jobOperationAttributeRecord"],
+ },
+ },
"/purchaseInvoiceLine": {
get: {
parameters: [
@@ -51184,6 +51370,12 @@ export default {
},
type: "array",
},
+ procedureId: {
+ description:
+ "Note:\nThis is a Foreign Key to `procedure.id`.<fk table='procedure' column='id'/>",
+ format: "text",
+ type: "string",
+ },
},
type: "object",
},
@@ -58094,6 +58286,12 @@ export default {
},
type: "array",
},
+ procedureId: {
+ description:
+ "Note:\nThis is a Foreign Key to `procedure.id`.<fk table='procedure' column='id'/>",
+ format: "text",
+ type: "string",
+ },
},
type: "object",
},
@@ -62256,7 +62454,7 @@ export default {
properties: {
id: {
description:
- "Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `supplierLocation.id`.<fk table='supplierLocation' column='id'/>",
+ "Note:\nThis is a Foreign Key to `supplierLocation.id`.<fk table='supplierLocation' column='id'/>",
format: "text",
type: "string",
},
@@ -62305,7 +62503,7 @@ export default {
},
supplierLocationId: {
description:
- "Note:\nThis is a Foreign Key to `supplierLocation.id`.<fk table='supplierLocation' column='id'/>",
+ "Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `supplierLocation.id`.<fk table='supplierLocation' column='id'/>",
format: "text",
type: "string",
},
@@ -66917,6 +67115,67 @@ export default {
},
type: "object",
},
+ jobOperationAttributeRecord: {
+ required: [
+ "jobOperationAttributeId",
+ "companyId",
+ "createdAt",
+ "createdBy",
+ ],
+ properties: {
+ jobOperationAttributeId: {
+ description: "Note:\nThis is a Primary Key.<pk/>",
+ format: "text",
+ type: "string",
+ },
+ value: {
+ format: "text",
+ type: "string",
+ },
+ numericValue: {
+ format: "numeric",
+ type: "number",
+ },
+ booleanValue: {
+ format: "boolean",
+ type: "boolean",
+ },
+ userValue: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ companyId: {
+ description:
+ "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ createdAt: {
+ default: "now()",
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ createdBy: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ updatedAt: {
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ updatedBy: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ },
+ type: "object",
+ },
purchaseInvoiceLine: {
required: [
"id",
@@ -72383,6 +72642,13 @@ export default {
in: "query",
type: "string",
},
+ "rowFilter.jobOperationsWithMakeMethods.procedureId": {
+ name: "procedureId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
"body.customerLocation": {
name: "customerLocation",
description: "customerLocation",
@@ -81370,6 +81636,13 @@ export default {
in: "query",
type: "string",
},
+ "rowFilter.quoteOperationsWithMakeMethods.procedureId": {
+ name: "procedureId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
"body.procedureParameter": {
name: "procedureParameter",
description: "procedureParameter",
@@ -92959,6 +93232,85 @@ export default {
in: "query",
type: "string",
},
+ "body.jobOperationAttributeRecord": {
+ name: "jobOperationAttributeRecord",
+ description: "jobOperationAttributeRecord",
+ required: false,
+ in: "body",
+ schema: {
+ $ref: "#/definitions/jobOperationAttributeRecord",
+ },
+ },
+ "rowFilter.jobOperationAttributeRecord.jobOperationAttributeId": {
+ name: "jobOperationAttributeId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.jobOperationAttributeRecord.value": {
+ name: "value",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.jobOperationAttributeRecord.numericValue": {
+ name: "numericValue",
+ required: false,
+ format: "numeric",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.jobOperationAttributeRecord.booleanValue": {
+ name: "booleanValue",
+ required: false,
+ format: "boolean",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.jobOperationAttributeRecord.userValue": {
+ name: "userValue",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.jobOperationAttributeRecord.companyId": {
+ name: "companyId",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.jobOperationAttributeRecord.createdAt": {
+ name: "createdAt",
+ required: false,
+ format: "timestamp with time zone",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.jobOperationAttributeRecord.createdBy": {
+ name: "createdBy",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.jobOperationAttributeRecord.updatedAt": {
+ name: "updatedAt",
+ required: false,
+ format: "timestamp with time zone",
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.jobOperationAttributeRecord.updatedBy": {
+ name: "updatedBy",
+ required: false,
+ format: "text",
+ in: "query",
+ type: "string",
+ },
"body.purchaseInvoiceLine": {
name: "purchaseInvoiceLine",
description: "purchaseInvoiceLine",