Line 101... |
Line 101... |
101 |
root.getBase().getDataSource().execute(tableRub.asString());
|
101 |
root.getBase().getDataSource().execute(tableRub.asString());
|
102 |
root.refetchTable("RUBRIQUE_COTISATION");
|
102 |
root.refetchTable("RUBRIQUE_COTISATION");
|
103 |
root.getSchema().updateVersion();
|
103 |
root.getSchema().updateVersion();
|
104 |
}
|
104 |
}
|
105 |
|
105 |
|
- |
|
106 |
if (!tableRubCot.contains("NUMERO_COMPTE_PCE")) {
|
- |
|
107 |
final AlterTable alter = new AlterTable(tableRubCot);
|
- |
|
108 |
alter.addVarCharColumn("NUMERO_COMPTE_PCE", 128);
|
- |
|
109 |
alter.addVarCharColumn("NUMERO_COMPTE_PCE_CHARGES", 128);
|
- |
|
110 |
final String req = alter.asString();
|
- |
|
111 |
root.getDBSystemRoot().getDataSource().execute(req);
|
- |
|
112 |
root.refetchTable(tableRubCot.getName());
|
- |
|
113 |
root.getSchema().updateVersion();
|
- |
|
114 |
}
|
- |
|
115 |
|
106 |
if (!tableRubCot.contains("TAXABLE_CM")) {
|
116 |
if (!tableRubCot.contains("TAXABLE_CM")) {
|
107 |
AlterTable tableRub = new AlterTable(tableRubCot);
|
117 |
AlterTable tableRub = new AlterTable(tableRubCot);
|
108 |
tableRub.addBooleanColumn("TAXABLE_CM", Boolean.FALSE, false);
|
118 |
tableRub.addBooleanColumn("TAXABLE_CM", Boolean.FALSE, false);
|
109 |
root.getBase().getDataSource().execute(tableRub.asString());
|
119 |
root.getBase().getDataSource().execute(tableRub.asString());
|
110 |
root.refetchTable("RUBRIQUE_COTISATION");
|
120 |
root.refetchTable("RUBRIQUE_COTISATION");
|
Line 527... |
Line 537... |
527 |
v.add(Tuple2.create("01", "DSN Mensuelle"));
|
537 |
v.add(Tuple2.create("01", "DSN Mensuelle"));
|
528 |
v.add(Tuple2.create("02", "Signalement Fin du contrat de travail"));
|
538 |
v.add(Tuple2.create("02", "Signalement Fin du contrat de travail"));
|
529 |
v.add(Tuple2.create("04", "Signalement Arrêt de travail"));
|
539 |
v.add(Tuple2.create("04", "Signalement Arrêt de travail"));
|
530 |
v.add(Tuple2.create("05", "Signalement Reprise suite à arrêt de travail"));
|
540 |
v.add(Tuple2.create("05", "Signalement Reprise suite à arrêt de travail"));
|
531 |
v.add(Tuple2.create("06", "DSN reprise d'historique"));
|
541 |
v.add(Tuple2.create("06", "DSN reprise d'historique"));
|
- |
|
542 |
v.add(Tuple2.create("07", "Signalement Fin du contrat de travail unique"));
|
532 |
insertValues(v, table);
|
543 |
insertValues(v, table);
|
533 |
} catch (SQLException ex) {
|
544 |
} catch (SQLException ex) {
|
534 |
throw new IllegalStateException("Erreur lors de la création de la table " + "DSN_NATURE", ex);
|
545 |
throw new IllegalStateException("Erreur lors de la création de la table " + "DSN_NATURE", ex);
|
535 |
}
|
546 |
}
|
- |
|
547 |
} else {
|
- |
|
548 |
final SQLTable table = root.getTable("DSN_NATURE");
|
- |
|
549 |
List<Tuple2<String, String>> v = new ArrayList<Tuple2<String, String>>();
|
- |
|
550 |
// DSN 2023
|
- |
|
551 |
v.add(Tuple2.create("07", "Signalement Fin du contrat de travail unique"));
|
- |
|
552 |
insertValues(v, table);
|
536 |
}
|
553 |
}
|
537 |
|
554 |
|
538 |
if (!root.contains("DSN_TYPE")) {
|
555 |
if (!root.contains("DSN_TYPE")) {
|
539 |
final SQLCreateTable createTableMotif = new SQLCreateTable(root, "DSN_TYPE");
|
556 |
final SQLCreateTable createTableMotif = new SQLCreateTable(root, "DSN_TYPE");
|
540 |
createTableMotif.addVarCharColumn("CODE", 25);
|
557 |
createTableMotif.addVarCharColumn("CODE", 25);
|