From 27ea836a393ae3f884fd4250f19ed1368e55a70f Mon Sep 17 00:00:00 2001 From: Mael Date: Sun, 4 Nov 2018 18:28:36 +0000 Subject: [PATCH] =?UTF-8?q?:bug:=20Erreur=20lors=20de=20l'inversion=20du?= =?UTF-8?q?=20salaire=20net=20apr=C3=A8s=20IR?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Il est appelé avec une assiette négative, lors de l'inversion --- source/engine/mecanisms.js | 1 + 1 file changed, 1 insertion(+) diff --git a/source/engine/mecanisms.js b/source/engine/mecanisms.js index 69cf8bdf7..699a80b79 100644 --- a/source/engine/mecanisms.js +++ b/source/engine/mecanisms.js @@ -716,6 +716,7 @@ export let mecanismLinearScale = (recurse, k, v) => { ({ de: min, à: max }) => roundedAssiette >= min && roundedAssiette <= max ) + if (!matchedTranche) return 0 return matchedTranche.taux.nodeValue * val(assiette) }