Line 44... |
Line 44... |
44 |
public static final String TEMPLATE_ID = "FichePayeSimplifiee";
|
44 |
public static final String TEMPLATE_ID = "FichePayeSimplifiee";
|
45 |
public static final String TEMPLATE_PROPERTY_NAME = "LocationFichePaye";
|
45 |
public static final String TEMPLATE_PROPERTY_NAME = "LocationFichePaye";
|
46 |
final Map<Integer, String> cotisationSimplifieeLink = new HashMap<>();
|
46 |
final Map<Integer, String> cotisationSimplifieeLink = new HashMap<>();
|
47 |
|
47 |
|
48 |
public FichePayeSheetXML(final SQLRow row) {
|
48 |
public FichePayeSheetXML(final SQLRow row) {
|
- |
|
49 |
this(row, !new SQLPreferences(row.getTable().getDBRoot()).getBoolean(PayeGlobalPreferencePanel.NOT_PAYE_SIMPL, Boolean.FALSE));
|
- |
|
50 |
}
|
- |
|
51 |
|
- |
|
52 |
public FichePayeSheetXML(final SQLRow row, boolean simplifie) {
|
49 |
super(row);
|
53 |
super(row);
|
50 |
this.printer = PrinterNXProps.getInstance().getStringProperty("FichePayePrinter");
|
54 |
this.printer = PrinterNXProps.getInstance().getStringProperty("FichePayePrinter");
|
51 |
this.elt = Configuration.getInstance().getDirectory().getElement("FICHE_PAYE");
|
55 |
this.elt = Configuration.getInstance().getDirectory().getElement("FICHE_PAYE");
|
52 |
SQLPreferences prefs = new SQLPreferences(elt.getTable().getDBRoot());
|
- |
|
53 |
boolean prefBulletinSimpl = !prefs.getBoolean(PayeGlobalPreferencePanel.NOT_PAYE_SIMPL, Boolean.FALSE);
|
- |
|
54 |
|
56 |
|
55 |
if (prefBulletinSimpl) {
|
57 |
if (simplifie) {
|
- |
|
58 |
|
56 |
SQLSelect sel = new SQLSelect();
|
59 |
SQLSelect sel = new SQLSelect();
|
57 |
sel.addSelect(row.getTable().getDBRoot().findTable("RUBRIQUE_COTISATION").getField("LIGNE_PAYE_SIMPLIFIEE"));
|
60 |
sel.addSelect(row.getTable().getDBRoot().findTable("RUBRIQUE_COTISATION").getField("LIGNE_PAYE_SIMPLIFIEE"));
|
58 |
sel.addSelect(row.getTable().getDBRoot().findTable("RUBRIQUE_COTISATION").getKey());
|
61 |
sel.addSelect(row.getTable().getDBRoot().findTable("RUBRIQUE_COTISATION").getKey());
|
59 |
List<SQLRow> rubCotis = SQLRowListRSH.execute(sel);
|
62 |
List<SQLRow> rubCotis = SQLRowListRSH.execute(sel);
|
60 |
|
63 |
|