Commit 61e6ce3e by Damien Moulard

allow caissier to recieve payments

parent 3ae1d424
...@@ -245,7 +245,7 @@ class UserController extends AbstractController ...@@ -245,7 +245,7 @@ class UserController extends AbstractController
/** /**
* @Route("/encaissement", name="encaissement") * @Route("/encaissement", name="encaissement")
* @IsGranted("ROLE_PRESTATAIRE") * @IsGranted({"ROLE_CAISSIER", "ROLE_PRESTATAIRE"})
*/ */
public function encaissementAction(Request $request, UserPasswordEncoderInterface $encoder) public function encaissementAction(Request $request, UserPasswordEncoderInterface $encoder)
{ {
......
{% if tav_env == 1 %}
{% set esoldelabel = 'Solde e-mlc'|trans %}
{% include '@kohinos/block/solde.html.twig' with {'compte': getCurrentPrestataire().emlcAccount.balance, 'soldelabel': esoldelabel, 'currency' : 'e'~(KOH_MLC_SYMBOL|default(''))} %}
{% include '@kohinos/tav/block/encaisser_paiement.html.twig' %}
{% endif %}
{% include '@kohinos/block/transactions.html.twig' with {'title': 'Transactions'} %}
\ No newline at end of file
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
{% elseif app.user and is_granted('ROLE_CAISSIER') and getCurrentPrestataire() != null %} {% elseif app.user and is_granted('ROLE_CAISSIER') and getCurrentPrestataire() != null %}
{% include '@kohinos/block/transactions.html.twig' with {'title': 'Transactions'} %} {% include '@kohinos/block/admin_caissier.html.twig' %}
{% elseif app.user and is_granted('ROLE_ADHERENT') and app.user.adherent %} {% elseif app.user and is_granted('ROLE_ADHERENT') and app.user.adherent %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment