OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 19 Rev 25
Line 27... Line 27...
27
public class VenteComptoirSheet extends SheetInterface {
27
public class VenteComptoirSheet extends SheetInterface {
28
 
28
 
29
    private static final SQLTable tableComptoir = base.getTable("SAISIE_VENTE_COMPTOIR");
29
    private static final SQLTable tableComptoir = base.getTable("SAISIE_VENTE_COMPTOIR");
30
    private static final SQLTable tableClient = base.getTable("CLIENT");
30
    private static final SQLTable tableClient = base.getTable("CLIENT");
31
    private static final SQLTable tableAdresse = base.getTable("ADRESSE");
31
    private static final SQLTable tableAdresse = base.getTable("ADRESSE");
32
    private final static SQLTable tableAdresseCommon = Configuration.getInstance().getBase().getTable("ADRESSE_COMMON");
-
 
33
    private static final SQLTable tableArticle = base.getTable("ARTICLE");
32
    private static final SQLTable tableArticle = base.getTable("ARTICLE");
34
    private static final SQLTable tableTaxe = base.getTable("TAXE");
33
    private static final SQLTable tableTaxe = base.getTable("TAXE");
35
    private static final SQLTable tableModeRegl = base.getTable("MODE_REGLEMENT");
34
    private static final SQLTable tableModeRegl = base.getTable("MODE_REGLEMENT");
36
    private static final SQLTable tableTypeRegl = base.getTable("TYPE_REGLEMENT");
35
    private static final SQLTable tableTypeRegl = base.getTable("TYPE_REGLEMENT");
-
 
36
    public static final String TEMPLATE_ID = "VenteComptoir";
-
 
37
    public static final String TEMPLATE_PROPERTY_NAME = "LocationVenteComptoir";
37
 
38
 
38
    public VenteComptoirSheet(int idFact) {
39
    public VenteComptoirSheet(int idFact) {
39
        super(idFact, tableComptoir);
40
        super(idFact, tableComptoir);
40
    }
41
    }
41
 
42
 
42
    public VenteComptoirSheet(SQLRow rowSaisie) {
43
    public VenteComptoirSheet(SQLRow rowSaisie) {
43
        super(rowSaisie);
44
        super(rowSaisie);
44
    }
45
    }
45
 
46
 
-
 
47
    @Override
-
 
48
    protected String getYear() {
-
 
49
        return "";
-
 
50
    }
-
 
51
 
-
 
52
    @Override
-
 
53
    public String getTemplateId() {
-
 
54
        return TEMPLATE_ID;
-
 
55
    }
-
 
56
 
46
    protected void createMap() {
57
    protected void createMap() {
47
        // TODO Auto-generated method stub
58
        // TODO Auto-generated method stub
48
        this.mCell = new HashMap();
59
        this.mCell = new HashMap();
49
 
60
 
50
        // Infos societe
61
        // Infos societe
Line 87... Line 98...
87
        this.mCell.put("G31", new Float(ttc.calculTVA(rowTaxe.getFloat("TAUX") / 100.0)));
98
        this.mCell.put("G31", new Float(ttc.calculTVA(rowTaxe.getFloat("TAUX") / 100.0)));
88
        this.mCell.put("G32", new Float(ttc.getValue()));
99
        this.mCell.put("G32", new Float(ttc.getValue()));
89
 
100
 
90
        this.mCell.put("A35", this.row.getObject("INFOS"));
101
        this.mCell.put("A35", this.row.getObject("INFOS"));
91
    }
102
    }
-
 
103
 
92
}
104
}