Line 37... |
Line 37... |
37 |
import org.openconcerto.erp.core.finance.accounting.action.EtatJournauxAction;
|
37 |
import org.openconcerto.erp.core.finance.accounting.action.EtatJournauxAction;
|
38 |
import org.openconcerto.erp.core.finance.accounting.action.ExportRelationExpertAction;
|
38 |
import org.openconcerto.erp.core.finance.accounting.action.ExportRelationExpertAction;
|
39 |
import org.openconcerto.erp.core.finance.accounting.action.GenerePointageAction;
|
39 |
import org.openconcerto.erp.core.finance.accounting.action.GenerePointageAction;
|
40 |
import org.openconcerto.erp.core.finance.accounting.action.GestionPlanComptableEAction;
|
40 |
import org.openconcerto.erp.core.finance.accounting.action.GestionPlanComptableEAction;
|
41 |
import org.openconcerto.erp.core.finance.accounting.action.ImportEcritureAction;
|
41 |
import org.openconcerto.erp.core.finance.accounting.action.ImportEcritureAction;
|
- |
|
42 |
import org.openconcerto.erp.core.finance.accounting.action.ImportEcritureFECAction;
|
42 |
import org.openconcerto.erp.core.finance.accounting.action.ImpressionJournauxAnalytiqueAction;
|
43 |
import org.openconcerto.erp.core.finance.accounting.action.ImpressionJournauxAnalytiqueAction;
|
43 |
import org.openconcerto.erp.core.finance.accounting.action.ImpressionLivrePayeAction;
|
44 |
import org.openconcerto.erp.core.finance.accounting.action.ImpressionLivrePayeAction;
|
44 |
import org.openconcerto.erp.core.finance.accounting.action.ImpressionRepartitionAnalytiqueAction;
|
45 |
import org.openconcerto.erp.core.finance.accounting.action.ImpressionRepartitionAnalytiqueAction;
|
45 |
import org.openconcerto.erp.core.finance.accounting.action.ListeDesCategorieComptableAction;
|
46 |
import org.openconcerto.erp.core.finance.accounting.action.ListeDesCategorieComptableAction;
|
46 |
import org.openconcerto.erp.core.finance.accounting.action.ListeDesComptesAction;
|
47 |
import org.openconcerto.erp.core.finance.accounting.action.ListeDesComptesAction;
|
Line 107... |
Line 108... |
107 |
import org.openconcerto.erp.core.sales.invoice.action.ImportReglementSageAction;
|
108 |
import org.openconcerto.erp.core.sales.invoice.action.ImportReglementSageAction;
|
108 |
import org.openconcerto.erp.core.sales.invoice.action.ListeDebiteursAction;
|
109 |
import org.openconcerto.erp.core.sales.invoice.action.ListeDebiteursAction;
|
109 |
import org.openconcerto.erp.core.sales.invoice.action.ListeDesElementsFactureAction;
|
110 |
import org.openconcerto.erp.core.sales.invoice.action.ListeDesElementsFactureAction;
|
110 |
import org.openconcerto.erp.core.sales.invoice.action.ListeDesFactureItemsAction;
|
111 |
import org.openconcerto.erp.core.sales.invoice.action.ListeDesFactureItemsAction;
|
111 |
import org.openconcerto.erp.core.sales.invoice.action.ListeDesVentesAction;
|
112 |
import org.openconcerto.erp.core.sales.invoice.action.ListeDesVentesAction;
|
- |
|
113 |
import org.openconcerto.erp.core.sales.invoice.action.ListeEcheancePrelevementAction;
|
112 |
import org.openconcerto.erp.core.sales.invoice.action.ListeSDDMessageAction;
|
114 |
import org.openconcerto.erp.core.sales.invoice.action.ListeSDDMessageAction;
|
113 |
import org.openconcerto.erp.core.sales.invoice.action.ListeSaisieVenteFactureAction;
|
115 |
import org.openconcerto.erp.core.sales.invoice.action.ListeSaisieVenteFactureAction;
|
114 |
import org.openconcerto.erp.core.sales.invoice.action.ListesFacturesClientsImpayeesAction;
|
116 |
import org.openconcerto.erp.core.sales.invoice.action.ListesFacturesClientsImpayeesAction;
|
115 |
import org.openconcerto.erp.core.sales.invoice.action.NouveauSaisieVenteComptoirAction;
|
117 |
import org.openconcerto.erp.core.sales.invoice.action.NouveauSaisieVenteComptoirAction;
|
116 |
import org.openconcerto.erp.core.sales.invoice.action.NouveauSaisieVenteFactureAction;
|
118 |
import org.openconcerto.erp.core.sales.invoice.action.NouveauSaisieVenteFactureAction;
|
Line 381... |
Line 383... |
381 |
}
|
383 |
}
|
382 |
|
384 |
|
383 |
if (rights.haveRight(NXRights.GESTION_ENCAISSEMENT.getCode())) {
|
385 |
if (rights.haveRight(NXRights.GESTION_ENCAISSEMENT.getCode())) {
|
384 |
Group gCustomer = new Group("menu.payment.customer");
|
386 |
Group gCustomer = new Group("menu.payment.customer");
|
385 |
gCustomer.addItem("customer.invoice.unpaid.list");
|
387 |
gCustomer.addItem("customer.invoice.unpaid.list");
|
- |
|
388 |
gCustomer.addItem("customer.payment.prelevement.list");
|
386 |
gCustomer.addItem("customer.payment.report");
|
389 |
gCustomer.addItem("customer.payment.report");
|
387 |
gCustomer.addItem("customer.dept.list");
|
390 |
gCustomer.addItem("customer.dept.list");
|
388 |
gCustomer.addItem("customer.payment.list");
|
391 |
gCustomer.addItem("customer.payment.list");
|
389 |
gCustomer.addItem("customer.payment.followup.list");
|
392 |
gCustomer.addItem("customer.payment.followup.list");
|
390 |
gCustomer.addItem("customer.payment.check.pending.list");
|
393 |
gCustomer.addItem("customer.payment.check.pending.list");
|
391 |
gCustomer.addItem("customer.payment.check.deposit.list");
|
394 |
gCustomer.addItem("customer.payment.check.deposit.list");
|
392 |
gCustomer.addItem("customer.payment.check.pending.create");
|
395 |
gCustomer.addItem("customer.payment.check.pending.create");
|
393 |
gCustomer.addItem("customer.payment.check.deposit.list");
|
396 |
gCustomer.addItem("customer.payment.check.deposit.list");
|
394 |
gCustomer.addItem("customer.payment.sddMessage.list");
|
- |
|
395 |
gCustomer.addItem("customer.credit.check.list");
|
397 |
gCustomer.addItem("customer.credit.check.list");
|
396 |
gCustomer.addItem("customer.credit.check.create");
|
398 |
gCustomer.addItem("customer.credit.check.create");
|
397 |
group.add(gCustomer);
|
399 |
group.add(gCustomer);
|
398 |
}
|
400 |
}
|
399 |
if (rights.haveRight(NXRights.LOCK_MENU_ACHAT.getCode())) {
|
401 |
if (rights.haveRight(NXRights.LOCK_MENU_ACHAT.getCode())) {
|
Line 456... |
Line 458... |
456 |
group.addItem("accounting.entries.ledger");
|
458 |
group.addItem("accounting.entries.ledger");
|
457 |
group.addItem("accounting.entries.list");
|
459 |
group.addItem("accounting.entries.list");
|
458 |
|
460 |
|
459 |
final Group gIO = new Group("menu.accounting.io", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
461 |
final Group gIO = new Group("menu.accounting.io", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
460 |
gIO.addItem("accounting.import");
|
462 |
gIO.addItem("accounting.import");
|
- |
|
463 |
gIO.addItem("accounting.import.fec");
|
461 |
gIO.addItem("accounting.export");
|
464 |
gIO.addItem("accounting.export");
|
462 |
group.add(gIO);
|
465 |
group.add(gIO);
|
463 |
|
466 |
|
464 |
final Group gClosing = new Group("menu.accounting.closing", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
467 |
final Group gClosing = new Group("menu.accounting.closing", LayoutHints.DEFAULT_NOLABEL_SEPARATED_GROUP_HINTS);
|
465 |
gClosing.addItem("accounting.validating");
|
468 |
gClosing.addItem("accounting.validating");
|
Line 652... |
Line 655... |
652 |
mManager.putAction(new ListeDesReliquatsBonsLivraisonsAction(), "customer.delivery.reliquat.list");
|
655 |
mManager.putAction(new ListeDesReliquatsBonsLivraisonsAction(), "customer.delivery.reliquat.list");
|
653 |
}
|
656 |
}
|
654 |
|
657 |
|
655 |
boolean useListDesVentesAction = bModeVenteComptoir;
|
658 |
boolean useListDesVentesAction = bModeVenteComptoir;
|
656 |
if (useListDesVentesAction) {
|
659 |
if (useListDesVentesAction) {
|
657 |
mManager.putAction(new ListeDesVentesAction(), "sales.list");
|
660 |
mManager.putAction(new ListeDesVentesAction(conf), "sales.list");
|
658 |
|
661 |
|
659 |
} else {
|
662 |
} else {
|
660 |
|
663 |
|
661 |
mManager.putAction(new ListeSaisieVenteFactureAction(), "customer.invoice.list");
|
664 |
mManager.putAction(new ListeSaisieVenteFactureAction(), "customer.invoice.list");
|
662 |
}
|
665 |
}
|
Line 705... |
Line 708... |
705 |
mManager.putAction(new ListeEcritureParClasseAction(), "accounting.entries.list");
|
708 |
mManager.putAction(new ListeEcritureParClasseAction(), "accounting.entries.list");
|
706 |
mManager.putAction(new NouvelleValidationAction(), "accounting.validating");
|
709 |
mManager.putAction(new NouvelleValidationAction(), "accounting.validating");
|
707 |
mManager.putAction(new NouveauClotureAction(), "accounting.closing");
|
710 |
mManager.putAction(new NouveauClotureAction(), "accounting.closing");
|
708 |
mManager.putAction(new ImportEcritureAction(), "accounting.import");
|
711 |
mManager.putAction(new ImportEcritureAction(), "accounting.import");
|
709 |
mManager.putAction(new ExportRelationExpertAction(), "accounting.export");
|
712 |
mManager.putAction(new ExportRelationExpertAction(), "accounting.export");
|
- |
|
713 |
mManager.putAction(new ImportEcritureFECAction(), "accounting.import.fec");
|
710 |
}
|
714 |
}
|
711 |
|
715 |
|
712 |
public void registerStatsDocumentsActions(final MenuAndActions mManager) {
|
716 |
public void registerStatsDocumentsActions(final MenuAndActions mManager) {
|
713 |
// mManager.putAction("accounting.vat.report", new DeclarationTVAAction());
|
717 |
// mManager.putAction("accounting.vat.report", new DeclarationTVAAction());
|
714 |
mManager.putAction(new EtatChargeAction(), "accounting.costs.report");
|
718 |
mManager.putAction(new EtatChargeAction(), "accounting.costs.report");
|
Line 788... |
Line 792... |
788 |
mManager.putAction(new ListeDesRelancesAction(), "customer.payment.followup.list");
|
792 |
mManager.putAction(new ListeDesRelancesAction(), "customer.payment.followup.list");
|
789 |
mManager.putAction(new ListeDesChequesAEncaisserAction(), "customer.payment.check.pending.list");
|
793 |
mManager.putAction(new ListeDesChequesAEncaisserAction(), "customer.payment.check.pending.list");
|
790 |
mManager.putAction(new ListeDesDepostChequesAction(), "customer.payment.check.deposit.list");
|
794 |
mManager.putAction(new ListeDesDepostChequesAction(), "customer.payment.check.deposit.list");
|
791 |
mManager.putAction(new NouveauListeDesChequesAEncaisserAction(conf), "customer.payment.check.pending.create");
|
795 |
mManager.putAction(new NouveauListeDesChequesAEncaisserAction(conf), "customer.payment.check.pending.create");
|
792 |
mManager.putAction(new ListeSDDMessageAction(conf.getDirectory()), "customer.payment.sddMessage.list");
|
796 |
mManager.putAction(new ListeSDDMessageAction(conf.getDirectory()), "customer.payment.sddMessage.list");
|
- |
|
797 |
mManager.putAction(new ListeEcheancePrelevementAction(conf), "customer.payment.prelevement.list");
|
793 |
mManager.putAction(new ListeDesChequesAvoirAction(), "customer.credit.check.list");
|
798 |
mManager.putAction(new ListeDesChequesAvoirAction(), "customer.credit.check.list");
|
794 |
mManager.putAction(new NouveauDecaissementChequeAvoirAction(conf), "customer.credit.check.create");
|
799 |
mManager.putAction(new NouveauDecaissementChequeAvoirAction(conf), "customer.credit.check.create");
|
- |
|
800 |
|
795 |
}
|
801 |
}
|
796 |
if (rights.haveRight(NXRights.LOCK_MENU_ACHAT.getCode())) {
|
802 |
if (rights.haveRight(NXRights.LOCK_MENU_ACHAT.getCode())) {
|
797 |
mManager.putAction(new ListesFacturesFournImpayeesAction(), "supplier.invoice.unpaid.list");
|
803 |
mManager.putAction(new ListesFacturesFournImpayeesAction(), "supplier.invoice.unpaid.list");
|
798 |
mManager.putAction(new ListeDesTraitesFournisseursAction(), "supplier.bill.list");
|
804 |
mManager.putAction(new ListeDesTraitesFournisseursAction(), "supplier.bill.list");
|
799 |
mManager.putAction(new ListeDesChequesFournisseursAction(), "supplier.payment.check.list");
|
805 |
mManager.putAction(new ListeDesChequesFournisseursAction(), "supplier.payment.check.list");
|
Line 861... |
Line 867... |
861 |
mManager.putAction(new ListeBanqueAction(), "divison.bank.list");
|
867 |
mManager.putAction(new ListeBanqueAction(), "divison.bank.list");
|
862 |
mManager.putAction(new NouvelleSocieteAction(this.getConfiguration()), "enterprise.create");
|
868 |
mManager.putAction(new NouvelleSocieteAction(this.getConfiguration()), "enterprise.create");
|
863 |
}
|
869 |
}
|
864 |
|
870 |
|
865 |
public void registerHelpMenuActions(final MenuAndActions mManager) {
|
871 |
public void registerHelpMenuActions(final MenuAndActions mManager) {
|
866 |
mManager.putAction(AboutAction.getInstance(), "information");
|
872 |
mManager.putAction(new AboutAction(getConfiguration()), "information");
|
867 |
mManager.putAction(new AstuceAction(), "tips");
|
873 |
mManager.putAction(new AstuceAction(), "tips");
|
868 |
}
|
874 |
}
|
869 |
|
875 |
|
870 |
public void registerHelpTestActions(final MenuAndActions mManager) {
|
876 |
public void registerHelpTestActions(final MenuAndActions mManager) {
|
871 |
|
877 |
|