OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 132 | Rev 156 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 132 Rev 142
Line 38... Line 38...
38
            map(getSource().getField("ID_CONTACT"), getDestination().getField("ID_CONTACT"));
38
            map(getSource().getField("ID_CONTACT"), getDestination().getField("ID_CONTACT"));
39
        }
39
        }
40
        if (getSource().getTable().contains("ID_CLIENT_DEPARTEMENT")) {
40
        if (getSource().getTable().contains("ID_CLIENT_DEPARTEMENT")) {
41
            map(getSource().getField("ID_CLIENT_DEPARTEMENT"), getDestination().getField("ID_CLIENT_DEPARTEMENT"));
41
            map(getSource().getField("ID_CLIENT_DEPARTEMENT"), getDestination().getField("ID_CLIENT_DEPARTEMENT"));
42
        }
42
        }
-
 
43
        if (getSource().getTable().contains("ID_ADRESSE") && getDestination().contains("ID_ADRESSE")) {
-
 
44
            map(getSource().getField("ID_ADRESSE"), getDestination().getField("ID_ADRESSE"));
-
 
45
        }
-
 
46
        if (getSource().getTable().contains("ID_ADRESSE_LIVRAISON")) {
-
 
47
            map(getSource().getField("ID_ADRESSE_LIVRAISON"), getDestination().getField("ID_ADRESSE_LIVRAISON"));
-
 
48
        }
43
        if (tableBon.contains("ID_TAXE_PORT")) {
49
        if (tableBon.contains("ID_TAXE_PORT")) {
44
            map(tableBon.getField("ID_TAXE_PORT"), tableFacture.getField("ID_TAXE_PORT"));
50
            map(tableBon.getField("ID_TAXE_PORT"), tableFacture.getField("ID_TAXE_PORT"));
45
        }
51
        }
46
        if (tableBon.contains("PORT_HT")) {
52
        if (tableBon.contains("PORT_HT")) {
47
            map(tableBon.getField("PORT_HT"), tableFacture.getField("PORT_HT"));
53
            map(tableBon.getField("PORT_HT"), tableFacture.getField("PORT_HT"));
Line 50... Line 56...
50
            map(tableBon.getField("REMISE_HT"), tableFacture.getField("REMISE_HT"));
56
            map(tableBon.getField("REMISE_HT"), tableFacture.getField("REMISE_HT"));
51
        }
57
        }
52
        if (getSource().getTable().contains("ID_TARIF") && getDestination().getTable().contains("ID_TARIF")) {
58
        if (getSource().getTable().contains("ID_TARIF") && getDestination().getTable().contains("ID_TARIF")) {
53
            map(getSource().getField("ID_TARIF"), getDestination().getField("ID_TARIF"));
59
            map(getSource().getField("ID_TARIF"), getDestination().getField("ID_TARIF"));
54
        }
60
        }
-
 
61
        if (getSource().getTable().contains("ACOMPTE_COMMANDE")) {
-
 
62
            map(getSource().getField("ACOMPTE_COMMANDE"), getDestination().getField("ACOMPTE_COMMANDE"));
55
 
63
        }
56
    }
64
    }
57
 
65
 
58
    @Override
66
    @Override
59
    protected void merge(SQLRowAccessor srcRow, SQLRowValues rowVals) {
67
    protected void merge(SQLRowAccessor srcRow, SQLRowValues rowVals) {
60
        super.merge(srcRow, rowVals);
68
        super.merge(srcRow, rowVals);