OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 18 Rev 177
Line 11... Line 11...
11
 * When distributing the software, include this License Header Notice in each file.
11
 * When distributing the software, include this License Header Notice in each file.
12
 */
12
 */
13
 
13
 
14
 package org.openconcerto.erp.element.objet;
14
 package org.openconcerto.erp.element.objet;
15
 
15
 
-
 
16
import java.util.ArrayList;
-
 
17
import java.util.List;
-
 
18
 
16
public class Compte {
19
public class Compte {
17
    private int id;
20
    private int id;
18
    private String numero;
21
    private String numero;
19
    private String nom;
22
    private String nom;
20
    private String infos;
23
    private String infos;
Line 46... Line 49...
46
        this.infos = infos;
49
        this.infos = infos;
47
        this.totalCredit = totalCredit;
50
        this.totalCredit = totalCredit;
48
        this.totalDebit = totalDebit;
51
        this.totalDebit = totalDebit;
49
    }
52
    }
50
 
53
 
-
 
54
    private List<String> sousCompte = new ArrayList<>();
-
 
55
 
-
 
56
    public List<String> getSousCompte() {
-
 
57
        return this.sousCompte;
-
 
58
    }
-
 
59
 
-
 
60
    public void addSousCompte(String compteNum) {
-
 
61
        this.sousCompte.add(compteNum);
-
 
62
    }
-
 
63
 
-
 
64
    public void addSousCompte(List<String> compteNum) {
-
 
65
        this.sousCompte.addAll(compteNum);
-
 
66
    }
-
 
67
 
51
    public int getId() {
68
    public int getId() {
52
        return this.id;
69
        return this.id;
53
    }
70
    }
54
 
71
 
55
    public String getNumero() {
72
    public String getNumero() {