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 59... |
Line 59... |
59 |
}
|
59 |
}
|
60 |
|
60 |
|
61 |
getNewMouvement(GenerationMvtSaisieKm.source, this.idSaisieKm, 1, rowValsPiece);
|
61 |
getNewMouvement(GenerationMvtSaisieKm.source, this.idSaisieKm, 1, rowValsPiece);
|
62 |
|
62 |
|
63 |
// gnération des ecritures
|
63 |
// gnération des ecritures
|
64 |
SQLTable tableElt = Configuration.getInstance().getRoot().findTable("SAISIE_KM_ELEMENT");
|
64 |
SQLTable tableElt = table.getDBRoot().findTable("SAISIE_KM_ELEMENT");
|
65 |
List<SQLRow> set = saisieRow.getReferentRows(tableElt);
|
65 |
List<SQLRow> set = saisieRow.getReferentRows(tableElt);
|
66 |
|
66 |
|
67 |
SQLTable tableAssoc = Configuration.getInstance().getRoot().findTable("ASSOCIATION_ANALYTIQUE");
|
67 |
SQLTable tableAssoc = Configuration.getInstance().getRoot().findTable("ASSOCIATION_ANALYTIQUE");
|
68 |
|
68 |
|
69 |
for (SQLRow rowElement : set) {
|
69 |
for (SQLRow rowElement : set) {
|
70 |
|
70 |
|
71 |
int idCpt = ComptePCESQLElement.getId(rowElement.getString("NUMERO"), rowElement.getString("NOM"));
|
71 |
int idCpt = ComptePCESQLElement.getId(rowElement.getString("NUMERO"), rowElement.getString("NOM"));
|
72 |
|
72 |
|
- |
|
73 |
if (ecritureTable.contains("DATE_ECHEANCE") && table.getDBRoot().findTable("SAISIE_KM_ELEMENT").contains("DATE_ECHEANCE")) {
|
- |
|
74 |
this.putValue("DATE_ECHEANCE", rowElement.getObject("DATE_ECHEANCE"));
|
- |
|
75 |
}
|
73 |
// Ajout de l'écriture
|
76 |
// Ajout de l'écriture
|
74 |
this.putValue("ID_COMPTE_PCE", new Integer(idCpt));
|
77 |
this.putValue("ID_COMPTE_PCE", new Integer(idCpt));
|
75 |
this.putValue("NOM", rowElement.getString("NOM_ECRITURE"));
|
78 |
this.putValue("NOM", rowElement.getString("NOM_ECRITURE"));
|
76 |
this.putValue("DEBIT", rowElement.getObject("DEBIT"));
|
79 |
this.putValue("DEBIT", rowElement.getObject("DEBIT"));
|
77 |
this.putValue("CREDIT", rowElement.getObject("CREDIT"));
|
80 |
this.putValue("CREDIT", rowElement.getObject("CREDIT"));
|