Ajout du filtre de LFR1 si non applicable

pull/2077/head
Jérémy Rialland 2022-03-15 19:01:58 +01:00 committed by Johan Girod
parent 0d04e35dd6
commit cfd14b3436
1 changed files with 4 additions and 1 deletions

View File

@ -211,7 +211,10 @@ export const FormulaireS1S1Bis = ({
node.dottedName &&
dotName + ' . ' + node.dottedName in engine.parsedRules &&
engine.evaluate(dotName + ' . ' + node.dottedName)
.nodeValue !== null
.nodeValue !== null &&
(node.dottedName + ' applicable' in engine.parsedRules
? engine.evaluate(node.dottedName + ' applicable').nodeValue
: true)
)
.flatMap((node) => {
if (