Line 41... |
Line 41... |
41 |
}
|
41 |
}
|
42 |
|
42 |
|
43 |
if (getSource().contains("ID_ADRESSE_LIVRAISON") && getDestination().contains("ID_ADRESSE_LIVRAISON")) {
|
43 |
if (getSource().contains("ID_ADRESSE_LIVRAISON") && getDestination().contains("ID_ADRESSE_LIVRAISON")) {
|
44 |
map(getSource().getField("ID_ADRESSE_LIVRAISON"), getDestination().getField("ID_ADRESSE_LIVRAISON"));
|
44 |
map(getSource().getField("ID_ADRESSE_LIVRAISON"), getDestination().getField("ID_ADRESSE_LIVRAISON"));
|
45 |
}
|
45 |
}
|
- |
|
46 |
if (getSource().getTable().contains("ID_CATEGORIE_COMPTABLE") && getDestination().getTable().contains("ID_CATEGORIE_COMPTABLE")) {
|
- |
|
47 |
map(getSource().getField("ID_CATEGORIE_COMPTABLE"), getDestination().getField("ID_CATEGORIE_COMPTABLE"));
|
46 |
|
48 |
}
|
47 |
if (getSource().getTable().contains("DATE_LIVRAISON") && getDestination().contains("DATE_LIVRAISON")) {
|
49 |
if (getSource().getTable().contains("DATE_LIVRAISON") && getDestination().contains("DATE_LIVRAISON")) {
|
48 |
map(getSource().getField("DATE_LIVRAISON"), getDestination().getField("DATE_LIVRAISON"));
|
50 |
map(getSource().getField("DATE_LIVRAISON"), getDestination().getField("DATE_LIVRAISON"));
|
49 |
}
|
51 |
}
|
50 |
|
52 |
|
51 |
if (getSource().getTable().contains("ID_CLIENT_DEPARTEMENT")) {
|
53 |
if (getSource().getTable().contains("ID_CLIENT_DEPARTEMENT")) {
|
Line 62... |
Line 64... |
62 |
|
64 |
|
63 |
// Merge elements
|
65 |
// Merge elements
|
64 |
final SQLTable tableElementSource = getSource().getTable("SAISIE_VENTE_FACTURE_ELEMENT");
|
66 |
final SQLTable tableElementSource = getSource().getTable("SAISIE_VENTE_FACTURE_ELEMENT");
|
65 |
final SQLTable tableElementDestination = getSource().getTable("AVOIR_CLIENT_ELEMENT");
|
67 |
final SQLTable tableElementDestination = getSource().getTable("AVOIR_CLIENT_ELEMENT");
|
66 |
final Collection<? extends SQLRowAccessor> myListItem = srcRow.asRow().getReferentRows(tableElementSource);
|
68 |
final Collection<? extends SQLRowAccessor> myListItem = srcRow.asRow().getReferentRows(tableElementSource);
|
67 |
transfertReference(srcRow, rowVals, "NOM", "NOM");
|
- |
|
68 |
transfertNumberReference(srcRow, rowVals, tableElementDestination, "ID_AVOIR_CLIENT");
|
69 |
transfertNumberReference(srcRow, rowVals, tableElementDestination, "ID_AVOIR_CLIENT");
|
- |
|
70 |
transfertReference(srcRow, rowVals, tableElementDestination, "ID_AVOIR_CLIENT", "NOM", "NOM");
|
69 |
|
71 |
|
70 |
if (myListItem.size() != 0) {
|
72 |
if (myListItem.size() != 0) {
|
71 |
final SQLInjector injector = SQLInjector.getInjector(tableElementSource, tableElementDestination);
|
73 |
final SQLInjector injector = SQLInjector.getInjector(tableElementSource, tableElementDestination);
|
72 |
for (SQLRowAccessor rowElt : myListItem) {
|
74 |
for (SQLRowAccessor rowElt : myListItem) {
|
73 |
final SQLRowValues createRowValuesFrom = injector.createRowValuesFrom(rowElt.asRow());
|
75 |
final SQLRowValues createRowValuesFrom = injector.createRowValuesFrom(rowElt.asRow());
|