Line 23... |
Line 23... |
23 |
import org.openconcerto.erp.core.customerrelationship.mail.ValueListener;
|
23 |
import org.openconcerto.erp.core.customerrelationship.mail.ValueListener;
|
24 |
import org.openconcerto.erp.core.finance.accounting.element.MouvementSQLElement;
|
24 |
import org.openconcerto.erp.core.finance.accounting.element.MouvementSQLElement;
|
25 |
import org.openconcerto.erp.core.finance.payment.element.EncaisserMontantSQLElement;
|
25 |
import org.openconcerto.erp.core.finance.payment.element.EncaisserMontantSQLElement;
|
26 |
import org.openconcerto.erp.core.sales.invoice.action.ImportReglementSage;
|
26 |
import org.openconcerto.erp.core.sales.invoice.action.ImportReglementSage;
|
27 |
import org.openconcerto.erp.core.sales.invoice.report.MailRelanceCreator;
|
27 |
import org.openconcerto.erp.core.sales.invoice.report.MailRelanceCreator;
|
- |
|
28 |
import org.openconcerto.erp.core.sales.invoice.report.SituationCompteClientPanel;
|
28 |
import org.openconcerto.erp.core.sales.invoice.report.VenteFactureXmlSheet;
|
29 |
import org.openconcerto.erp.core.sales.invoice.report.VenteFactureXmlSheet;
|
29 |
import org.openconcerto.erp.rights.ComptaUserRight;
|
30 |
import org.openconcerto.erp.rights.ComptaUserRight;
|
30 |
import org.openconcerto.sql.Configuration;
|
31 |
import org.openconcerto.sql.Configuration;
|
31 |
import org.openconcerto.sql.element.BaseSQLComponent;
|
32 |
import org.openconcerto.sql.element.BaseSQLComponent;
|
32 |
import org.openconcerto.sql.element.SQLComponent;
|
33 |
import org.openconcerto.sql.element.SQLComponent;
|
Line 60... |
Line 61... |
60 |
import org.openconcerto.sql.view.list.RowAction.PredicateRowAction;
|
61 |
import org.openconcerto.sql.view.list.RowAction.PredicateRowAction;
|
61 |
import org.openconcerto.sql.view.list.SQLTableModelSource;
|
62 |
import org.openconcerto.sql.view.list.SQLTableModelSource;
|
62 |
import org.openconcerto.ui.DefaultGridBagConstraints;
|
63 |
import org.openconcerto.ui.DefaultGridBagConstraints;
|
63 |
import org.openconcerto.ui.EmailComposer;
|
64 |
import org.openconcerto.ui.EmailComposer;
|
64 |
import org.openconcerto.ui.JDate;
|
65 |
import org.openconcerto.ui.JDate;
|
- |
|
66 |
import org.openconcerto.ui.PanelFrame;
|
65 |
import org.openconcerto.ui.SwingThreadUtils;
|
67 |
import org.openconcerto.ui.SwingThreadUtils;
|
66 |
import org.openconcerto.utils.CollectionUtils;
|
68 |
import org.openconcerto.utils.CollectionUtils;
|
67 |
import org.openconcerto.utils.ExceptionHandler;
|
69 |
import org.openconcerto.utils.ExceptionHandler;
|
68 |
import org.openconcerto.utils.GestionDevise;
|
70 |
import org.openconcerto.utils.GestionDevise;
|
69 |
import org.openconcerto.utils.ListMap;
|
71 |
import org.openconcerto.utils.ListMap;
|
Line 211... |
Line 213... |
211 |
}
|
213 |
}
|
212 |
}
|
214 |
}
|
213 |
}, true);
|
215 |
}, true);
|
214 |
action.setPredicate(IListeEvent.createTotalRowCountPredicate(0, Integer.MAX_VALUE));
|
216 |
action.setPredicate(IListeEvent.createTotalRowCountPredicate(0, Integer.MAX_VALUE));
|
215 |
getRowActions().add(action);
|
217 |
getRowActions().add(action);
|
- |
|
218 |
|
- |
|
219 |
PredicateRowAction actionSituation = new PredicateRowAction(new AbstractAction("Générer une situationde compte") {
|
- |
|
220 |
|
- |
|
221 |
@Override
|
- |
|
222 |
public void actionPerformed(ActionEvent e) {
|
- |
|
223 |
PanelFrame frame = new PanelFrame(new SituationCompteClientPanel(ComptaPropsConfiguration.getInstanceCompta()), "Situation client");
|
- |
|
224 |
frame.setVisible(true);
|
- |
|
225 |
}
|
- |
|
226 |
}, true);
|
- |
|
227 |
actionSituation.setPredicate(IListeEvent.createSelectionCountPredicate(0, Integer.MAX_VALUE));
|
- |
|
228 |
getRowActions().add(actionSituation);
|
216 |
}
|
229 |
}
|
217 |
|
230 |
|
218 |
if (UserRightsManager.getCurrentUserRights().haveRight(ComptaUserRight.MENU)) {
|
231 |
if (UserRightsManager.getCurrentUserRights().haveRight(ComptaUserRight.MENU)) {
|
219 |
RowAction actionCancel = new RowAction(new AbstractAction("Annuler la régularisation en comptabilité") {
|
232 |
RowAction actionCancel = new RowAction(new AbstractAction("Annuler la régularisation en comptabilité") {
|
220 |
|
233 |
|
Line 548... |
Line 561... |
548 |
if (rowEch != null) {
|
561 |
if (rowEch != null) {
|
549 |
int idMvtSource = MouvementSQLElement.getSourceId(rowEch.getForeignID("ID_MOUVEMENT"));
|
562 |
int idMvtSource = MouvementSQLElement.getSourceId(rowEch.getForeignID("ID_MOUVEMENT"));
|
550 |
SQLRow rowMvtSource = getTable().getTable("MOUVEMENT").getRow(idMvtSource);
|
563 |
SQLRow rowMvtSource = getTable().getTable("MOUVEMENT").getRow(idMvtSource);
|
551 |
|
564 |
|
552 |
if (!rowMvtSource.getString("SOURCE").equalsIgnoreCase("SAISIE_VENTE_FACTURE")) {
|
565 |
if (!rowMvtSource.getString("SOURCE").equalsIgnoreCase("SAISIE_VENTE_FACTURE")) {
|
- |
|
566 |
JOptionPane.showMessageDialog(null, "Impossible de relancer un échéance qui n'est pas issue d'une facture.");
|
553 |
return;
|
567 |
return;
|
554 |
}
|
568 |
}
|
555 |
|
569 |
|
556 |
EditFrame editRelance = new EditFrame(relanceElt);
|
570 |
EditFrame editRelance = new EditFrame(relanceElt);
|
557 |
editRelance.setIconImages(Gestion.getFrameIcon());
|
571 |
editRelance.setIconImages(Gestion.getFrameIcon());
|