OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 142 Rev 174
Line 18... Line 18...
18
 
18
 
19
public class CommandeFactureEltSQLInjector extends SQLInjector {
19
public class CommandeFactureEltSQLInjector extends SQLInjector {
20
    public CommandeFactureEltSQLInjector(final DBRoot root) {
20
    public CommandeFactureEltSQLInjector(final DBRoot root) {
21
        super(root, "COMMANDE_CLIENT_ELEMENT", "SAISIE_VENTE_FACTURE_ELEMENT", false);
21
        super(root, "COMMANDE_CLIENT_ELEMENT", "SAISIE_VENTE_FACTURE_ELEMENT", false);
22
        createDefaultMap();
22
        createDefaultMap();
-
 
23
        remove(getSource().getField("QTE_LIVREE"), getDestination().getField("QTE_LIVREE"));
23
        if (getDestination().contains("ID_COMMANDE_CLIENT_ELEMENT")) {
24
        if (getDestination().contains("ID_COMMANDE_CLIENT_ELEMENT")) {
24
            map(getSource().getKey(), getDestination().getField("ID_COMMANDE_CLIENT_ELEMENT"));
25
            map(getSource().getKey(), getDestination().getField("ID_COMMANDE_CLIENT_ELEMENT"));
25
        }
26
        }
26
    }
27
    }
27
}
28
}