Checkpoint: Correctifs validés en sandbox : retour contextuel depuis le détail vers Factures BAP avec filtres et tri conservés, et nouvelle action Abonnement Oui/Non/Ne pas modifier dans les automatismes. Ajout de tests de non-régression.
This commit is contained in:
@@ -11,6 +11,7 @@ interface Actions {
|
||||
typeAchat?: string;
|
||||
serviceConcerne?: string;
|
||||
ventilationComptable?: string;
|
||||
isSubscription?: 0 | 1;
|
||||
}
|
||||
import { getSessionCookieOptions } from "./_core/cookies";
|
||||
import { systemRouter } from "./_core/systemRouter";
|
||||
@@ -2028,7 +2029,7 @@ export const appRouter = router({
|
||||
|
||||
for (const invoice of bapInvoices) {
|
||||
const updates = await applyAutomationRules(ctx.user.id, invoice);
|
||||
if (updates.typeAchat || updates.serviceConcerne || updates.ventilationComptable || updates.autoFilledFields) {
|
||||
if (updates.typeAchat || updates.serviceConcerne || updates.ventilationComptable || updates.isSubscription !== undefined || updates.autoFilledFields) {
|
||||
await updateInvoice(invoice.id, updates);
|
||||
}
|
||||
}
|
||||
@@ -2059,7 +2060,7 @@ export const appRouter = router({
|
||||
|
||||
for (const invoice of bapInvoices) {
|
||||
const updates = await applyAutomationRules(ctx.user.id, invoice);
|
||||
if (updates.typeAchat || updates.serviceConcerne || updates.ventilationComptable || updates.autoFilledFields) {
|
||||
if (updates.typeAchat || updates.serviceConcerne || updates.ventilationComptable || updates.isSubscription !== undefined || updates.autoFilledFields) {
|
||||
await updateInvoice(invoice.id, updates);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user