Skip to content

Commit

Permalink
⚙️ Support des expressions dans le résultat d'un barème linéaire
Browse files Browse the repository at this point in the history
  • Loading branch information
mquandalle committed Dec 17, 2019
1 parent 1b963b8 commit 2e164f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion source/engine/mecanismViews/Barème.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ let Tranche = ({
</>
)}
</td>
<td key="taux"> {taux != null ? makeJsx(taux) : montant}</td>
<td key="taux"> {taux != null ? makeJsx(taux) : makeJsx(montant)}</td>
{showValues && !returnRate && taux != null && (
<td key="value">
<NodeValuePointer data={nodeValue} unit={resultUnit} />
Expand Down
15 changes: 5 additions & 10 deletions source/règles/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5083,24 +5083,19 @@ contrat salarié . convention collective . sport . cotisations . assiette forfai
unité: heures/mois
tranches:
- en-dessous de: 45
montant: 5
# * SMIC horaire
montant: 5 * SMIC horaire
- de: 45
à: 60
montant: 15
# * SMIC horaire
montant: 15 * SMIC horaire
- de: 60
à: 80
montant: 25
# * SMIC horaire
montant: 25 * SMIC horaire
- de: 80
à: 100
montant: 35
# * SMIC horaire
montant: 35 * SMIC horaire
- de: 100
à: 115
montant: 50
# * SMIC horaire
montant: 50 * SMIC horaire

contrat salarié . convention collective . sport . primes . nombre de manifestations:
question: Combien de manifestations rémunérées le joueur a-t'il effectué ?
Expand Down

0 comments on commit 2e164f4

Please sign in to comment.