Checkpoint: Ajout de la table deletedInvoices (blacklist) : quand une facture est supprimée, son numéro est enregistré et l'import email/fichier ne la réimporte plus.
This commit is contained in:
@@ -244,11 +244,11 @@ export default function Invoices() {
|
||||
if (subscriptionFilter === "yes" && !isSub) return false;
|
||||
if (subscriptionFilter === "no" && isSub) return false;
|
||||
}
|
||||
// Filter by entity (SANTINOVA = ventilationComptable === 'SANTINOVA', ITINOVA = autre)
|
||||
// Filter by entity (SANTINOVA = serviceConcerne === 'DSI SANTINOVA', ITINOVA = autre)
|
||||
if (entityFilter !== "all") {
|
||||
const ventil = ((inv as any).ventilationComptable || "").toUpperCase();
|
||||
if (entityFilter === "santinova" && ventil !== "SANTINOVA") return false;
|
||||
if (entityFilter === "itinova" && ventil === "SANTINOVA") return false;
|
||||
const service = ((inv as any).serviceConcerne || "").trim().toUpperCase();
|
||||
if (entityFilter === "santinova" && service !== "DSI SANTINOVA") return false;
|
||||
if (entityFilter === "itinova" && service === "DSI SANTINOVA") return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user