fixup! 🐛 ⚙️ Correction du mecanisme allegement

pull/171/head
Mael 2018-02-22 19:47:27 +01:00
parent 7fe9bb8e8b
commit 99a2ae899d
2 changed files with 10 additions and 5 deletions

View File

@ -548,12 +548,12 @@ export let mecanismReduction = (recurse, k, v) => {
}
let effect = ({ assiette, abattement, franchise, décote }) => {
let v_assiette = val(assiette),
nulled = v_assiette == null
let v_assiette = val(assiette)
let montantFranchiséDécoté = nulled
? null
: val(franchise) && v_assiette < val(franchise)
if (v_assiette == null) return null
let montantFranchiséDécoté =
val(franchise) && v_assiette < val(franchise)
? 0
: décote
? do {

View File

@ -12,6 +12,11 @@
- situation:
montant: 1000
valeur attendue: 0
- situation:
valeur attendue: null
variables manquantes:
- montant
- test: montant décoté
format: