Line 34... |
Line 34... |
34 |
protected void merge(SQLRowAccessor srcRow, SQLRowValues rowVals) {
|
34 |
protected void merge(SQLRowAccessor srcRow, SQLRowValues rowVals) {
|
35 |
super.merge(srcRow, rowVals);
|
35 |
super.merge(srcRow, rowVals);
|
36 |
|
36 |
|
37 |
// Merge elements
|
37 |
// Merge elements
|
38 |
final SQLTable tableElementSource = getSource().getTable("COMMANDE_ELEMENT");
|
38 |
final SQLTable tableElementSource = getSource().getTable("COMMANDE_ELEMENT");
|
39 |
final SQLTable tableElementDestination = getSource().getTable("FACTURE_FOUNRISSEUR_ELEMENT");
|
39 |
final SQLTable tableElementDestination = getSource().getTable("FACTURE_FOURNISSEUR_ELEMENT");
|
40 |
final Collection<? extends SQLRowAccessor> myListItem = srcRow.asRow().getReferentRows(tableElementSource);
|
40 |
final Collection<? extends SQLRowAccessor> myListItem = srcRow.asRow().getReferentRows(tableElementSource);
|
41 |
transfertReference(srcRow, rowVals, "NOM", "NOM");
|
- |
|
42 |
transfertReference(srcRow, rowVals, "INFOS", "INFOS");
|
- |
|
43 |
transfertNumberReference(srcRow, rowVals, tableElementDestination, "ID_FACTURE_FOURNISSEUR");
|
41 |
transfertNumberReference(srcRow, rowVals, tableElementDestination, "ID_FACTURE_FOURNISSEUR");
|
- |
|
42 |
transfertReference(srcRow, rowVals, tableElementDestination, "ID_FACTURE_FOURNISSEUR", "NOM", "NOM");
|
- |
|
43 |
transfertReference(srcRow, rowVals, tableElementDestination, "ID_FACTURE_FOURNISSEUR", "INFOS", "INFOS");
|
44 |
if (myListItem.size() != 0) {
|
44 |
if (myListItem.size() != 0) {
|
45 |
final SQLInjector injector = SQLInjector.getInjector(tableElementSource, tableElementDestination);
|
45 |
final SQLInjector injector = SQLInjector.getInjector(tableElementSource, tableElementDestination);
|
46 |
for (SQLRowAccessor rowElt : myListItem) {
|
46 |
for (SQLRowAccessor rowElt : myListItem) {
|
47 |
final SQLRowValues createRowValuesFrom = injector.createRowValuesFrom(rowElt.asRow());
|
47 |
final SQLRowValues createRowValuesFrom = injector.createRowValuesFrom(rowElt.asRow());
|
48 |
if (createRowValuesFrom.getTable().getFieldsName().contains("POURCENT_ACOMPTE")) {
|
48 |
if (createRowValuesFrom.getTable().getFieldsName().contains("POURCENT_ACOMPTE")) {
|