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
f329b0ed
Commit
f329b0ed
authored
May 13, 2024
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
6340 et 6341 : add filter on adherents and tresorerie menu only
parent
677269b1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
3 deletions
+22
-3
AdherentAdmin.php
src/Admin/AdherentAdmin.php
+9
-1
OperationAdherentAdmin.php
src/Admin/OperationAdherentAdmin.php
+8
-2
Subterritory.php
src/Entity/Subterritory.php
+5
-0
No files found.
src/Admin/AdherentAdmin.php
View file @
f329b0ed
...
...
@@ -539,7 +539,15 @@ class AdherentAdmin extends AbstractAdmin
;
if
(
$this
->
getConfigurationPool
()
->
getContainer
()
->
getParameter
(
'tav_env'
))
{
$datagridMapper
->
remove
(
'cotisationajour'
);
$datagridMapper
->
remove
(
'cotisationajour'
);
if
(
$this
->
getConfigurationPool
()
->
getContainer
()
->
getParameter
(
'household_based_allowance'
))
{
$datagridMapper
->
add
(
'geoloc.subterritory'
,
null
,
[
'label'
=>
'Territoire'
,
'advanced_filter'
=>
false
,
'show_filter'
=>
true
,
]);
}
}
}
...
...
src/Admin/OperationAdherentAdmin.php
View file @
f329b0ed
...
...
@@ -69,7 +69,13 @@ class OperationAdherentAdmin extends OperationAdmin
'label'
=>
'Adherent'
,
'advanced_filter'
=>
false
,
'show_filter'
=>
true
,
])
;
]);
if
(
$this
->
getConfigurationPool
()
->
getContainer
()
->
getParameter
(
'household_based_allowance'
))
{
$datagridMapper
->
add
(
'account.adherent.geoloc.subterritory'
,
null
,
[
'label'
=>
'Territoire'
,
'advanced_filter'
=>
false
,
'show_filter'
=>
true
,
]);
}
}
}
src/Entity/Subterritory.php
View file @
f329b0ed
...
...
@@ -46,4 +46,9 @@ class Subterritory
return
$this
;
}
public
function
__toString
()
:
string
{
return
$this
->
getName
();
}
}
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