Skip to content

Commit

Permalink
gestion bareme null
Browse files Browse the repository at this point in the history
  • Loading branch information
cdubois54 committed Jul 10, 2023
1 parent c8e5cef commit f1a41e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@ private Component getSessionFinaleDetails(CheminDTO o, boolean compact) {
return null;
}

private Component createLabelNote(int bareme, BigDecimal note, Absence absence, boolean compact) {
private Component createLabelNote(Integer bareme, BigDecimal note, Absence absence, boolean compact) {
Div result = new Div();
result.setHeight(CSSColorUtils.EM_1_5);
if(compact) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/fr/univlorraine/mondossierweb/utils/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,10 @@ private static boolean insertInList(List<CheminDTO> list, String cheminParent, C
return false;
}

public static String displayNote(BigDecimal note, int bareme, Boolean avecBareme) {
public static String displayNote(BigDecimal note, Integer bareme, Boolean avecBareme) {
String n = displayBigDecimal(note);

if(StringUtils.hasText(n) && avecBareme!=null && avecBareme.booleanValue()) {
if(StringUtils.hasText(n) && bareme != null && avecBareme != null && avecBareme.booleanValue()) {
n += "/" + bareme;
}
return n;
Expand Down

0 comments on commit f1a41e6

Please sign in to comment.