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
3
Merge Requests
3
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
66dea178
Commit
66dea178
authored
Feb 21, 2025
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
in simplified household set household composition not required
parent
350ba5cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
AdherentAdmin.php
src/Admin/AdherentAdmin.php
+12
-2
No files found.
src/Admin/AdherentAdmin.php
View file @
66dea178
...
...
@@ -251,7 +251,7 @@ class AdherentAdmin extends AbstractAdmin
"Colocation"
=>
"Colocation"
],
'label'
=>
"Composition du foyer (pour information)"
,
'required'
=>
tru
e
,
'required'
=>
fals
e
,
'disabled'
=>
$disableHouseholdAllowanceFields
,
'attr'
=>
[
'autocomplete'
=>
'off'
...
...
@@ -313,10 +313,20 @@ class AdherentAdmin extends AbstractAdmin
->
end
();
}
$cotisSectionInfo
=
""
;
if
(
$simplified_household_based_allowance
&&
$this
->
tavCotisationUtils
->
getAppropriateAllocationMethod
(
$adherent
)
==
'cotisation_profile'
)
{
// Inform admin that this adherent cotisation method falls back to ProfilDeCotisation, as it has one defined and no household data yet defined
$cotisSectionInfo
=
$em
->
getRepository
(
GlobalParameter
::
class
)
->
val
(
GlobalParameter
::
SSA_SIMPL_HOUSEHOLD_ADMIN_TEXT_INFO_ADHERENT_FALLBACKS_TO_PROFILECOTIS
);
$cotisSectionInfo
.=
" "
.
$adherent
->
getProfilDeCotisation
()
.
"."
;
}
// Add cotisation info
$formMapper
->
tab
(
'General'
)
->
with
(
'Informations de cotisation'
,
[
'class'
=>
'col-md-5'
])
->
with
(
'Informations de cotisation'
,
[
'class'
=>
'col-md-5'
,
'description'
=>
$cotisSectionInfo
])
->
add
(
'cotisationAmount'
,
NumberType
::
class
,
[
'label'
=>
'Montant de la cotisation (en €)'
,
'help'
=>
$simplified_household_based_allowance
?
''
:
'Montant minimum : 10€ par foyer + 5€/personne supplémentaire du foyer'
,
...
...
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