Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
agplv3
kohinos-tav
Commits
fa204e43
Commit
fa204e43
authored
Mar 18, 2024
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adherent pay its cotisation: use right amount for household based allowance
parent
e26663ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
AchatMonnaieFormType.php
src/Form/Type/AchatMonnaieFormType.php
+15
-4
adherent_payer_cotisation.html.twig
...mes/kohinos/tav/block/adherent_payer_cotisation.html.twig
+5
-2
No files found.
src/Form/Type/AchatMonnaieFormType.php
View file @
fa204e43
...
...
@@ -36,11 +36,22 @@ class AchatMonnaieFormType extends FluxFormType
if
(
$this
->
container
->
getParameter
(
'tav_env'
))
{
$montant
=
0
;
$profilDeCotisation
=
$this
->
security
->
getUser
()
->
getAdherent
()
->
getProfilDeCotisation
();
if
(
null
!=
$profilDeCotisation
)
{
$montant
=
$profilDeCotisation
->
getMontant
();
if
(
$this
->
container
->
getParameter
(
'household_based_allowance'
))
{
$cosisationMontant
=
$this
->
security
->
getUser
()
->
getAdherent
()
->
getCotisationAmount
();
if
(
null
!=
$cosisationMontant
)
{
$montant
=
$cosisationMontant
;
}
else
{
$montant
=
false
;
}
}
else
{
$montant
=
false
;
$profilDeCotisation
=
$this
->
security
->
getUser
()
->
getAdherent
()
->
getProfilDeCotisation
();
if
(
null
!=
$profilDeCotisation
)
{
$montant
=
$profilDeCotisation
->
getMontant
();
}
else
{
$montant
=
false
;
}
}
$builder
...
...
templates/themes/kohinos/tav/block/adherent_payer_cotisation.html.twig
View file @
fa204e43
...
...
@@ -6,9 +6,12 @@
{%
block
blockcontent
%}
{%
set
form
=
getPayerCotisationTAVForm
(
app.user
)
%}
{%
if
form.montant.vars.value
==
false
%}
{%
if
form.montant.vars.value
==
false
and
not
household_based_allowance
%}
<p>
{{
'Vous n\'avez pas de profil de cotisation associé, vous ne pouvez donc pas payer de cotisation.'
|
trans
}}
</p>
<p>
{{
'Veuillez contacter un administrateur.'
|
trans
}}
</p>
<p>
{{
'Veuillez contacter un•e administrateur•rice.'
|
trans
}}
</p>
{%
elseif
form.montant.vars.value
==
false
and
household_based_allowance
%}
<p>
{{
'Vous n\'avez pas de montant de cotisation renseigné dans votre profil, vous ne pouvez donc pas payer de cotisation.'
|
trans
}}
</p>
<p>
{{
'Veuillez contacter un•e administrateur•rice.'
|
trans
}}
</p>
{%
else
%}
<p>
{{
'Montant de la cotisation à payer'
|
trans
}}
:
<span
class=
"paiement_cotisation_montant"
>
{{
form.montant.vars.value
}}
€
</span>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment