Line 1... |
Line 1... |
1 |
/*
|
1 |
/*
|
2 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
2 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
|
3 |
*
|
3 |
*
|
4 |
* Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
|
4 |
* Copyright 2011-2019 OpenConcerto, by ILM Informatique. All rights reserved.
|
5 |
*
|
5 |
*
|
6 |
* The contents of this file are subject to the terms of the GNU General Public License Version 3
|
6 |
* The contents of this file are subject to the terms of the GNU General Public License Version 3
|
7 |
* only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
|
7 |
* only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
|
8 |
* copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
|
8 |
* copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
|
9 |
* language governing permissions and limitations under the License.
|
9 |
* language governing permissions and limitations under the License.
|
Line 32... |
Line 32... |
32 |
// map(tableDevis.getField("REMISE_HT"), tableCommande.getField("REMISE_HT"));
|
32 |
// map(tableDevis.getField("REMISE_HT"), tableCommande.getField("REMISE_HT"));
|
33 |
map(tableBon.getField("ID_CLIENT"), tableFacture.getField("ID_CLIENT"));
|
33 |
map(tableBon.getField("ID_CLIENT"), tableFacture.getField("ID_CLIENT"));
|
34 |
if (tableBon.getTable().contains("ID_POLE_PRODUIT")) {
|
34 |
if (tableBon.getTable().contains("ID_POLE_PRODUIT")) {
|
35 |
map(tableBon.getField("ID_POLE_PRODUIT"), tableFacture.getField("ID_POLE_PRODUIT"));
|
35 |
map(tableBon.getField("ID_POLE_PRODUIT"), tableFacture.getField("ID_POLE_PRODUIT"));
|
36 |
}
|
36 |
}
|
- |
|
37 |
if (tableBon.contains("T_ACOMPTE") && tableFacture.contains("T_ACOMPTE")) {
|
- |
|
38 |
map(tableBon.getField("T_ACOMPTE"), tableFacture.getField("T_ACOMPTE"));
|
- |
|
39 |
}
|
37 |
if (getSource().getTable().contains("ID_CONTACT")) {
|
40 |
if (getSource().getTable().contains("ID_CONTACT")) {
|
38 |
map(getSource().getField("ID_CONTACT"), getDestination().getField("ID_CONTACT"));
|
41 |
map(getSource().getField("ID_CONTACT"), getDestination().getField("ID_CONTACT"));
|
39 |
}
|
42 |
}
|
40 |
if (getSource().getTable().contains("ID_CLIENT_DEPARTEMENT")) {
|
43 |
if (getSource().getTable().contains("ID_CLIENT_DEPARTEMENT")) {
|
41 |
map(getSource().getField("ID_CLIENT_DEPARTEMENT"), getDestination().getField("ID_CLIENT_DEPARTEMENT"));
|
44 |
map(getSource().getField("ID_CLIENT_DEPARTEMENT"), getDestination().getField("ID_CLIENT_DEPARTEMENT"));
|
Line 68... |
Line 71... |
68 |
map(getSource().getField("ID_TARIF"), getDestination().getField("ID_TARIF"));
|
71 |
map(getSource().getField("ID_TARIF"), getDestination().getField("ID_TARIF"));
|
69 |
}
|
72 |
}
|
70 |
if (getSource().getTable().contains("ACOMPTE_COMMANDE")) {
|
73 |
if (getSource().getTable().contains("ACOMPTE_COMMANDE")) {
|
71 |
map(getSource().getField("ACOMPTE_COMMANDE"), getDestination().getField("ACOMPTE_COMMANDE"));
|
74 |
map(getSource().getField("ACOMPTE_COMMANDE"), getDestination().getField("ACOMPTE_COMMANDE"));
|
72 |
}
|
75 |
}
|
- |
|
76 |
if (getSource().getTable().contains("ID_COMMERCIAL")) {
|
- |
|
77 |
map(getSource().getField("ID_COMMERCIAL"), getDestination().getField("ID_COMMERCIAL"));
|
- |
|
78 |
}
|
73 |
}
|
79 |
}
|
74 |
|
80 |
|
75 |
@Override
|
81 |
@Override
|
76 |
protected void merge(SQLRowAccessor srcRow, SQLRowValues rowVals) {
|
82 |
protected void merge(SQLRowAccessor srcRow, SQLRowValues rowVals) {
|
77 |
super.merge(srcRow, rowVals);
|
83 |
super.merge(srcRow, rowVals);
|