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.

chore(purchasing): replace local-dev narration comment with plain TODO

naveenkashb142d9d1b7cf
diff --git a/apps/erp/app/modules/purchasing/types.ts b/apps/erp/app/modules/purchasing/types.ts
index 2d20124c27..6bfa28b828 100644
--- a/apps/erp/app/modules/purchasing/types.ts
+++ b/apps/erp/app/modules/purchasing/types.ts
@@ -24,11 +24,9 @@ export type PurchaseOrderAttachment = FileObject; // TODO: remove
export type PurchaseOrder = NonNullable<
Awaited<ReturnType<typeof getPurchaseOrders>>["data"]
->[number] & // migration 20260708204214 but the generated DB types could not be // TEMPORARY: these columns were added to the "purchaseOrders" view by
-// regenerated (local dev DB was restored from a backup older than the
-// checked-in types, so `pnpm db:types` would clobber unrelated types).
-// Remove this intersection after rebuilding the DB and regenerating types.
-{
+>[number] & {
+ // TODO: remove this intersection once database types are regenerated
+ // (columns added to the "purchaseOrders" view by migration 20260708204214)
receivableQuantity?: number | null;
receivedQuantity?: number | null;
};