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.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
Fix/update purchase price on invoice (#883)
Gaurav Bhatt3c17680bb1c0
diff --git a/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.post.tsx b/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.post.tsxindex e920f4616e..2bbe6910f3 100644--- a/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.post.tsx+++ b/apps/erp/app/routes/x+/purchase-invoice+/$invoiceId.post.tsx@@ -71,6 +71,7 @@ export async function action({ request, params }: ActionFunctionArgs) {body: {invoiceId: invoiceId,companyId: companyId,+ userId: userId,source: "purchaseInvoice",updatePrices: true,updateLeadTimes: falsediff --git a/apps/erp/app/routes/x+/purchase-order+/$orderId.finalize.tsx b/apps/erp/app/routes/x+/purchase-order+/$orderId.finalize.tsxindex e04e54f694..c2def998ae 100644--- a/apps/erp/app/routes/x+/purchase-order+/$orderId.finalize.tsx+++ b/apps/erp/app/routes/x+/purchase-order+/$orderId.finalize.tsx@@ -188,6 +188,7 @@ export async function action(args: ActionFunctionArgs) {body: {purchaseOrderId: orderId,companyId,+ userId,source: "purchaseOrder",updatePrices: true,updateLeadTimes: falsediff --git a/apps/erp/app/routes/x+/purchase-order+/$orderId.tsx b/apps/erp/app/routes/x+/purchase-order+/$orderId.tsxindex ce4dd2e6ff..720b11a2a2 100644--- a/apps/erp/app/routes/x+/purchase-order+/$orderId.tsx+++ b/apps/erp/app/routes/x+/purchase-order+/$orderId.tsx@@ -336,6 +336,7 @@ export async function action(args: ActionFunctionArgs) {body: {purchaseOrderId: orderId,companyId,+ userId,source: "purchaseOrder",updatePrices: true,updateLeadTimes: falsediff --git a/apps/erp/app/routes/x+/receipt+/$receiptId.post.tsx b/apps/erp/app/routes/x+/receipt+/$receiptId.post.tsxindex 293effe734..8f4eebe351 100644--- a/apps/erp/app/routes/x+/receipt+/$receiptId.post.tsx+++ b/apps/erp/app/routes/x+/receipt+/$receiptId.post.tsx@@ -171,6 +171,7 @@ export async function action({ request, params }: ActionFunctionArgs) {source: "purchaseOrder",purchaseOrderId: receiptMetadata.data.sourceDocumentId,companyId,+ userId,updatePrices: false,updateLeadTimes: true}diff --git a/packages/jobs/src/inngest/functions/tasks/post-transaction.ts b/packages/jobs/src/inngest/functions/tasks/post-transaction.tsindex 78489930b2..0d2e1d7d18 100644--- a/packages/jobs/src/inngest/functions/tasks/post-transaction.ts+++ b/packages/jobs/src/inngest/functions/tasks/post-transaction.ts@@ -78,6 +78,7 @@ export const postTransactionFunction = inngest.createFunction(body: {invoiceId: payload.documentId,companyId: payload.companyId,+ userId: payload.userId,source: "purchaseInvoice"}}