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
ba546e8e
Commit
ba546e8e
authored
Mar 28, 2024
by
Yvon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix admin flux filter types
parent
16d477c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
FluxAdmin.php
src/Admin/FluxAdmin.php
+1
-1
Flux.php
src/Entity/Flux.php
+3
-3
No files found.
src/Admin/FluxAdmin.php
View file @
ba546e8e
...
@@ -150,7 +150,7 @@ class FluxAdmin extends AbstractAdmin
...
@@ -150,7 +150,7 @@ class FluxAdmin extends AbstractAdmin
'show_filter'
=>
true
,
'show_filter'
=>
true
,
'field_type'
=>
SChoiceType
::
class
,
'field_type'
=>
SChoiceType
::
class
,
'field_options'
=>
[
'field_options'
=>
[
'choices'
=>
array_flip
(
Flux
::
ssaUsefulFriendlyTypeNames
())
'choices'
=>
array_flip
(
Flux
::
ssaUsefulFriendlyTypeNames
(
true
))
]
]
]);
]);
}
else
{
}
else
{
...
...
src/Entity/Flux.php
View file @
ba546e8e
...
@@ -658,11 +658,11 @@ abstract class Flux implements FluxInterface
...
@@ -658,11 +658,11 @@ abstract class Flux implements FluxInterface
:
$this
->
type
;
:
$this
->
type
;
}
}
public
static
function
ssaUsefulFriendlyTypeNames
()
public
static
function
ssaUsefulFriendlyTypeNames
(
$differentiateAchatsDeMonaPayzenOrComptoir
=
false
)
{
{
return
[
return
[
VenteEmlc
::
TYPE_VENTE_EMLC_ADHERENT
=>
"Achat de MonA via cotisation"
,
VenteEmlc
::
TYPE_VENTE_EMLC_ADHERENT
=>
"Achat de MonA via cotisation"
.
(
$differentiateAchatsDeMonaPayzenOrComptoir
?
" (au comptoir)"
:
""
)
,
AchatMonnaie
::
TYPE_ACHAT_ADHERENT
=>
"Achat de MonA via cotisation"
,
AchatMonnaie
::
TYPE_ACHAT_ADHERENT
=>
"Achat de MonA via cotisation"
.
(
$differentiateAchatsDeMonaPayzenOrComptoir
?
" (via Payzen)"
:
""
)
,
CotisationTavApplication
::
TYPE_REVERSEMENT_COTISATION_ADHERENT
=>
"Allocation complémentaire de la caisse"
,
CotisationTavApplication
::
TYPE_REVERSEMENT_COTISATION_ADHERENT
=>
"Allocation complémentaire de la caisse"
,
CotisationTavApplication
::
TYPE_PRELEVEMENT_COTISATION_ADHERENT
=>
"Réduction de l'allocation"
,
CotisationTavApplication
::
TYPE_PRELEVEMENT_COTISATION_ADHERENT
=>
"Réduction de l'allocation"
,
Don
::
TYPE_DON_ADHERENT
=>
Don
::
TYPE_DON_ADHERENT
,
Don
::
TYPE_DON_ADHERENT
=>
Don
::
TYPE_DON_ADHERENT
,
...
...
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