OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 177 Rev 180
Line 38... Line 38...
38
        final DBRoot root = ((ComptaPropsConfiguration) Configuration.getInstance()).getRootSociete();
38
        final DBRoot root = ((ComptaPropsConfiguration) Configuration.getInstance()).getRootSociete();
39
        final SQLTable table = root.getTable("TAXE");
39
        final SQLTable table = root.getTable("TAXE");
40
        SQLRowValues rowVals = new SQLRowValues(table);
40
        SQLRowValues rowVals = new SQLRowValues(table);
41
        rowVals.putNulls("TAUX", "CODE", "NOM", "ID_TAXE", "DEFAULT", "DEFAULT_ACHAT");
41
        rowVals.putNulls("TAUX", "CODE", "NOM", "ID_TAXE", "DEFAULT", "DEFAULT_ACHAT");
42
        List<String> compteFields = Arrays.asList("ID_COMPTE_PCE_COLLECTE", "ID_COMPTE_PCE_DED", "ID_COMPTE_PCE", "ID_COMPTE_PCE_VENTE", "ID_COMPTE_PCE_VENTE_SERVICE", "ID_COMPTE_PCE_COLLECTE_INTRA",
42
        List<String> compteFields = Arrays.asList("ID_COMPTE_PCE_COLLECTE", "ID_COMPTE_PCE_DED", "ID_COMPTE_PCE", "ID_COMPTE_PCE_VENTE", "ID_COMPTE_PCE_VENTE_SERVICE", "ID_COMPTE_PCE_COLLECTE_INTRA",
43
                "ID_COMPTE_PCE_DED_INTRA");
43
                "ID_COMPTE_PCE_DED_INTRA", "ID_COMPTE_PCE_COLLECTE_ENCAISSEMENT");
44
        for (String foreignFieldName : compteFields) {
44
        for (String foreignFieldName : compteFields) {
-
 
45
            if (table.contains(foreignFieldName)) {
45
            rowVals.putRowValues(foreignFieldName).putNulls("NUMERO", "NOM");
46
                rowVals.putRowValues(foreignFieldName).putNulls("NUMERO", "NOM");
46
        }
47
            }
-
 
48
        }
47
        return SQLRowValuesListFetcher.create(rowVals);
49
        return SQLRowValuesListFetcher.create(rowVals);
48
    }
50
    }
49
 
51
 
50
    private final Map<Integer, Float> mapTaux = new HashMap<>();
52
    private final Map<Integer, Float> mapTaux = new HashMap<>();
51
    private final Map<SQLRowAccessor, Float> mapRowTaux = new LinkedHashMap<>();
53
    private final Map<SQLRowAccessor, Float> mapRowTaux = new LinkedHashMap<>();