OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 142 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 142 Rev 151
Line 22... Line 22...
22
        this.type = type;
22
        this.type = type;
23
        this.montantInCents = 0;
23
        this.montantInCents = 0;
24
 
24
 
25
    }
25
    }
26
 
26
 
-
 
27
    public int getEuros() {
-
 
28
        return this.montantInCents / 100;
-
 
29
    }
-
 
30
 
-
 
31
    public int getCents() {
-
 
32
        return Math.abs(this.montantInCents) % 100;
-
 
33
    }
-
 
34
 
27
    public int getMontantInCents() {
35
    public int getMontantInCents() {
28
        return montantInCents;
36
        return montantInCents;
29
    }
37
    }
30
 
38
 
31
    public void setMontantInCents(int montantInCents) {
39
    public void setMontantInCents(int montantInCents) {
32
        if (montantInCents >= 0)
-
 
33
            this.montantInCents = montantInCents;
40
        this.montantInCents = montantInCents;
34
    }
41
    }
35
 
42
 
36
    public int getType() {
43
    public int getType() {
37
        return type;
44
        return type;