forked from ScoDoc/ScoDoc
Merge pull request 'ajustement bulletin web affichage malus negatif' (#677) from jmplace/ScoDoc-Lille:PR96_bulletin_web_malus into sco96
Reviewed-on: https://scodoc.org/git/ScoDoc/ScoDoc/pulls/677
This commit is contained in:
commit
868533e30e
@ -376,8 +376,12 @@ class releveBUT extends HTMLElement {
|
||||
}</div>
|
||||
<div class=info>`;
|
||||
if (!dataUE.date_capitalisation) {
|
||||
output += ` Bonus : ${dataUE.bonus || 0} -
|
||||
Malus : ${dataUE.malus || 0}`;
|
||||
output += ` Bonus : ${dataUE.bonus || 0} - `;
|
||||
if(dataUE.malus >= 0) {
|
||||
output += `Malus : ${dataUE.malus || 0}`;
|
||||
} else {
|
||||
output += `Bonus complémentaire : ${-dataUE.malus || 0}`;
|
||||
}
|
||||
} else {
|
||||
output += ` le ${this.ISOToDate(
|
||||
dataUE.date_capitalisation.split("T")[0]
|
||||
|
Loading…
Reference in New Issue
Block a user