fixup! 🐛 ⚙️ Correction du mecanisme allegement
parent
7fe9bb8e8b
commit
99a2ae899d
|
@ -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 {
|
||||
|
|
|
@ -12,6 +12,11 @@
|
|||
- situation:
|
||||
montant: 1000
|
||||
valeur attendue: 0
|
||||
- situation:
|
||||
valeur attendue: null
|
||||
variables manquantes:
|
||||
- montant
|
||||
|
||||
|
||||
- test: montant décoté
|
||||
format: €
|
||||
|
|
Loading…
Reference in New Issue