Line 66... |
Line 66... |
66 |
|
66 |
|
67 |
if (getSource().getTable().contains("MONTANT_REMISE") && getDestination().contains("MONTANT_REMISE")) {
|
67 |
if (getSource().getTable().contains("MONTANT_REMISE") && getDestination().contains("MONTANT_REMISE")) {
|
68 |
map(tableDevis.getField("MONTANT_REMISE"), getDestination().getField("MONTANT_REMISE"));
|
68 |
map(tableDevis.getField("MONTANT_REMISE"), getDestination().getField("MONTANT_REMISE"));
|
69 |
map(tableDevis.getField("POURCENT_REMISE"), getDestination().getField("POURCENT_REMISE"));
|
69 |
map(tableDevis.getField("POURCENT_REMISE"), getDestination().getField("POURCENT_REMISE"));
|
70 |
}
|
70 |
}
|
- |
|
71 |
if (getSource().getTable().contains("ID_CATEGORIE_COMPTABLE") && getDestination().getTable().contains("ID_CATEGORIE_COMPTABLE")) {
|
- |
|
72 |
map(getSource().getField("ID_CATEGORIE_COMPTABLE"), getDestination().getField("ID_CATEGORIE_COMPTABLE"));
|
- |
|
73 |
}
|
71 |
}
|
74 |
}
|
72 |
|
75 |
|
73 |
@Override
|
76 |
@Override
|
74 |
protected void merge(SQLRowAccessor srcRow, SQLRowValues rowVals) {
|
77 |
protected void merge(SQLRowAccessor srcRow, SQLRowValues rowVals) {
|
75 |
super.merge(srcRow, rowVals);
|
78 |
super.merge(srcRow, rowVals);
|
76 |
|
79 |
|
77 |
// Merge elements
|
80 |
// Merge elements
|
78 |
final SQLTable tableElementSource = getSource().getTable("DEVIS_ELEMENT");
|
81 |
final SQLTable tableElementSource = getSource().getTable("DEVIS_ELEMENT");
|
79 |
final SQLTable tableElementDestination = getSource().getTable("COMMANDE_CLIENT_ELEMENT");
|
82 |
final SQLTable tableElementDestination = getSource().getTable("COMMANDE_CLIENT_ELEMENT");
|
80 |
final Collection<? extends SQLRowAccessor> myListItem = srcRow.asRow().getReferentRows(tableElementSource);
|
83 |
final Collection<? extends SQLRowAccessor> myListItem = srcRow.asRow().getReferentRows(tableElementSource);
|
81 |
transfertReference(srcRow, rowVals, "OBJET", "NOM");
|
- |
|
82 |
transfertReference(srcRow, rowVals, "INFOS", "INFOS");
|
- |
|
83 |
transfertNumberReference(srcRow, rowVals, tableElementDestination, "ID_COMMANDE_CLIENT");
|
84 |
transfertNumberReference(srcRow, rowVals, tableElementDestination, "ID_COMMANDE_CLIENT");
|
- |
|
85 |
transfertReference(srcRow, rowVals, tableElementDestination, "ID_COMMANDE_CLIENT", "OBJET", "NOM");
|
- |
|
86 |
transfertReference(srcRow, rowVals, tableElementDestination, "ID_COMMANDE_CLIENT", "INFOS", "INFOS");
|
84 |
|
87 |
|
85 |
if (myListItem.size() != 0) {
|
88 |
if (myListItem.size() != 0) {
|
86 |
final SQLInjector injector = SQLInjector.getInjector(tableElementSource, tableElementDestination);
|
89 |
final SQLInjector injector = SQLInjector.getInjector(tableElementSource, tableElementDestination);
|
87 |
for (SQLRowAccessor rowElt : myListItem) {
|
90 |
for (SQLRowAccessor rowElt : myListItem) {
|
88 |
final SQLRowValues createRowValuesFrom = injector.createRowValuesFrom(rowElt.asRow());
|
91 |
final SQLRowValues createRowValuesFrom = injector.createRowValuesFrom(rowElt.asRow());
|