feat(accounting): allow cancelling serial invoice executions
This commit is contained in:
@@ -14,7 +14,7 @@ export const serialExecutions = pgTable("serial_executions", {
|
||||
tenant: bigint("tenant", { mode: "number" })
|
||||
.notNull()
|
||||
.references(() => tenants.id), executionDate: timestamp("execution_date").notNull(),
|
||||
status: text("status").default("draft"), // 'draft', 'completed'
|
||||
status: text("status").default("draft"), // generating, draft, processing, cancelling, cancelled, completed, error
|
||||
createdBy: text("created_by"), // oder UUID, je nach Auth-System
|
||||
createdAt: timestamp("created_at").defaultNow(),
|
||||
summary: text("summary"), // z.B. "25 Rechnungen erstellt"
|
||||
|
||||
Reference in New Issue
Block a user