Checkpoint: Ajout du bouton Validation BAP dans la page Factures BAP : nouveau champ bapValidated/bapValidatedAt dans le schéma, migration DB, route tRPC validateBAP avec vérification des critères (Score 100%, non exportée, isSubscription=0, service+typeAchat+ventilation remplis), bouton vert actif/désactivé avec tooltip explicatif, badge "Validé" pour les factures déjà validées
This commit is contained in:
@@ -99,6 +99,10 @@ export const invoices = mysqlTable("invoices", {
|
||||
// Subscription flag
|
||||
isSubscription: int("isSubscription").default(0).notNull(), // 0 = NON, 1 = OUI
|
||||
|
||||
// BAP Validation
|
||||
bapValidated: int("bapValidated").default(0).notNull(), // 0 = non validé, 1 = validé BAP
|
||||
bapValidatedAt: timestamp("bapValidatedAt"), // Date de validation BAP
|
||||
|
||||
// SFTP Export tracking
|
||||
exportedAt: timestamp("exportedAt"),
|
||||
exportMode: mysqlEnum("exportMode", ["manual", "automatic"]),
|
||||
|
||||
Reference in New Issue
Block a user