Line 13... |
Line 13... |
13 |
|
13 |
|
14 |
package org.openconcerto.erp.core.customerrelationship.customer.element;
|
14 |
package org.openconcerto.erp.core.customerrelationship.customer.element;
|
15 |
|
15 |
|
16 |
import org.openconcerto.erp.core.edm.AttachmentAction;
|
16 |
import org.openconcerto.erp.core.edm.AttachmentAction;
|
17 |
import org.openconcerto.erp.core.reports.history.ui.HistoriqueClientFrame;
|
17 |
import org.openconcerto.erp.core.reports.history.ui.HistoriqueClientFrame;
|
- |
|
18 |
import org.openconcerto.erp.preferences.GestionCommercialeGlobalPreferencePanel;
|
18 |
import org.openconcerto.sql.element.GlobalMapper;
|
19 |
import org.openconcerto.sql.element.GlobalMapper;
|
19 |
import org.openconcerto.sql.element.GroupSQLComponent;
|
20 |
import org.openconcerto.sql.element.GroupSQLComponent;
|
20 |
import org.openconcerto.sql.element.SQLComponent;
|
21 |
import org.openconcerto.sql.element.SQLComponent;
|
21 |
import org.openconcerto.sql.model.SQLRowAccessor;
|
22 |
import org.openconcerto.sql.model.SQLRowAccessor;
|
- |
|
23 |
import org.openconcerto.sql.preferences.SQLPreferences;
|
22 |
import org.openconcerto.sql.request.SQLFieldTranslator;
|
24 |
import org.openconcerto.sql.request.SQLFieldTranslator;
|
23 |
import org.openconcerto.sql.view.list.IListe;
|
25 |
import org.openconcerto.sql.view.list.IListe;
|
24 |
import org.openconcerto.sql.view.list.IListeAction.IListeEvent;
|
26 |
import org.openconcerto.sql.view.list.IListeAction.IListeEvent;
|
25 |
import org.openconcerto.sql.view.list.RowAction.PredicateRowAction;
|
27 |
import org.openconcerto.sql.view.list.RowAction.PredicateRowAction;
|
26 |
import org.openconcerto.ui.light.LightUIElement;
|
28 |
import org.openconcerto.ui.light.LightUIElement;
|
Line 71... |
Line 73... |
71 |
protected List<String> getListFields() {
|
73 |
protected List<String> getListFields() {
|
72 |
final List<String> fields = super.getListFields();
|
74 |
final List<String> fields = super.getListFields();
|
73 |
if (getTable().contains("GROUPE")) {
|
75 |
if (getTable().contains("GROUPE")) {
|
74 |
fields.add("GROUPE");
|
76 |
fields.add("GROUPE");
|
75 |
}
|
77 |
}
|
- |
|
78 |
SQLPreferences prefs = new SQLPreferences(getTable().getDBRoot());
|
- |
|
79 |
|
- |
|
80 |
if (prefs.getBoolean(GestionCommercialeGlobalPreferencePanel.CATEGORIE_COMPTABLE_SPEC, false)) {
|
- |
|
81 |
fields.add("ID_CATEGORIE_COMPTABLE");
|
- |
|
82 |
}
|
76 |
fields.add("SOLDE_COMPTE");
|
83 |
fields.add("SOLDE_COMPTE");
|
77 |
fields.add("REMIND_DATE");
|
84 |
fields.add("REMIND_DATE");
|
78 |
fields.add("OBSOLETE");
|
85 |
fields.add("OBSOLETE");
|
79 |
return fields;
|
86 |
return fields;
|
80 |
}
|
87 |
}
|