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: set date issued on invoice (not date paid) on posting

Brad Barbin4e81d742d8a2
diff --git a/packages/database/supabase/functions/post-sales-invoice/index.ts b/packages/database/supabase/functions/post-sales-invoice/index.ts
index 9e179fe96b..e451862106 100644
--- a/packages/database/supabase/functions/post-sales-invoice/index.ts
+++ b/packages/database/supabase/functions/post-sales-invoice/index.ts
@@ -749,7 +749,7 @@ serve(async (req: Request) => {
await trx
.updateTable("salesInvoice")
.set({
- datePaid: today, // TODO: remove this once we have payments working
+ dateIssued: today,
postingDate: today,
status: "Submitted",
})