feat: ajouter les factures litiges et leurs commentaires (recette)
Some checks failed
Validation applicative / TypeScript, tests et build (push) Failing after 2m14s

This commit is contained in:
Manus
2026-11-03 14:45:05 +00:00
parent 5f6c61d2f0
commit a6d90a90c3
16 changed files with 3320 additions and 13 deletions

View File

@@ -0,0 +1,2 @@
ALTER TABLE `invoices` ADD `isDisputed` int DEFAULT 0 NOT NULL;--> statement-breakpoint
ALTER TABLE `invoices` ADD `disputeComment` text;

File diff suppressed because it is too large Load Diff

View File

@@ -302,6 +302,13 @@
"when": 1790960584104,
"tag": "0042_deleted_invoices_blacklist",
"breakpoints": true
},
{
"idx": 43,
"version": "5",
"when": 1793716807177,
"tag": "0043_flashy_post",
"breakpoints": true
}
]
}
}

View File

@@ -104,6 +104,10 @@ export const invoices = mysqlTable("invoices", {
// Subscription flag
isSubscription: int("isSubscription").default(0).notNull(), // 0 = NON, 1 = OUI
// Le litige est indépendant de l’abonnement, du BAP et de l’export.
isDisputed: int("isDisputed").default(0).notNull(),
disputeComment: text("disputeComment"),
// BAP Validation
bapValidated: int("bapValidated").default(0).notNull(), // 0 = non validé, 1 = validé BAP
bapValidatedAt: timestamp("bapValidatedAt"), // Date de validation BAP