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.

fix(purchasing): link dashboard invoice rows to the purchase invoice (#1884)

Brad Barbinf29bebeb8838
diff --git a/apps/erp/app/routes/x+/purchasing+/_index.tsx b/apps/erp/app/routes/x+/purchasing+/_index.tsx
index 8e7eadf377..46af08b670 100644
--- a/apps/erp/app/routes/x+/purchasing+/_index.tsx
+++ b/apps/erp/app/routes/x+/purchasing+/_index.tsx
@@ -846,7 +846,10 @@ function PurchaseInvoiceRow({ doc }: { doc: PurchaseInvoice }) {
return (
<Tr>
<Td>
- <Hyperlink className="max-md:min-h-11" to={path.to.salesRfq(doc.id!)}>
+ <Hyperlink
+ className="max-md:min-h-11"
+ to={path.to.purchaseInvoice(doc.id!)}
+ >
<HStack spacing={1}>
<LuCreditCard className="size-4" />
<span>{doc.invoiceId}</span>