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
6
Merge Requests
6
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
d0061807
Commit
d0061807
authored
Dec 15, 2022
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix query to get adherents existing cotistions
parent
c53a92cc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
AdherentAdmin.php
src/Admin/AdherentAdmin.php
+3
-2
FluxRepository.php
src/Repository/FluxRepository.php
+1
-1
No files found.
src/Admin/AdherentAdmin.php
View file @
d0061807
...
...
@@ -171,10 +171,11 @@ class AdherentAdmin extends AbstractAdmin
->
tab
(
'General'
)
->
with
(
'Profil de cotisation'
,
[
'class'
=>
'col-md-5'
])
->
add
(
'profilDeCotisation'
,
ChoiceType
::
class
,
[
'required'
=>
fals
e
,
'label'
=>
'Choix du profil :
'
,
'required'
=>
tru
e
,
'label'
=>
'Choix du profil :'
,
'choices'
=>
$this
->
getConfigurationPool
()
->
getContainer
()
->
get
(
'doctrine'
)
->
getRepository
(
ProfilDeCotisation
::
class
)
->
findAll
(),
'empty_data'
=>
null
,
'placeholder'
=>
'Choisir un profil'
,
'choice_label'
=>
function
(
$choice
,
$key
,
$value
)
{
if
(
null
===
$choice
)
{
return
''
;
...
...
src/Repository/FluxRepository.php
View file @
d0061807
...
...
@@ -253,7 +253,7 @@ class FluxRepository extends ServiceEntityRepository
WHERE f.type IN ('achat_monnaie_adherent', 'vente_emlc_adherent')
AND f.created_at >= :f
AND f.created_at <= :t
AND
f.adherent_id = :adh_id
"
;
AND
(f.adherent_id = :adh_id OR f.adherent_dest_id = :adh_id)
"
;
$statement
=
$this
->
connection
->
prepare
(
$sqlQuery
);
$statement
->
bindValue
(
':f'
,
$from
);
...
...
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