Checkpoint: Ajout du téléchargement groupé ZIP dans Factures BAP, bouton Re-générer dans Historique BAP, filtres Validées BAP / En attente BAP dans Factures BAP
This commit is contained in:
@@ -919,3 +919,10 @@ export async function getBapPdfUrlsByInvoiceIds(invoiceIds: number[]): Promise<R
|
||||
}
|
||||
return map;
|
||||
}
|
||||
|
||||
// Mettre à jour le pdfUrl d'une entrée bapHistory (après re-génération)
|
||||
export async function updateBapHistoryPdfUrl(id: number, pdfUrl: string): Promise<void> {
|
||||
const db = await getDb();
|
||||
if (!db) return;
|
||||
await db.update(bapHistory).set({ pdfUrl }).where(eq(bapHistory.id, id));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user