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
e0efb776
Commit
e0efb776
authored
Dec 15, 2022
by
Félicie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
balance better
parent
fade8390
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
AdherentAdmin.php
src/Admin/AdherentAdmin.php
+6
-3
No files found.
src/Admin/AdherentAdmin.php
View file @
e0efb776
...
...
@@ -6,6 +6,7 @@ use App\Entity\AccountAdherent;
use
App\Entity\Adherent
;
use
App\Entity\CotisationAdherent
;
use
App\Entity\Geoloc
;
use
App\Entity\GlobalParameter
;
use
App\Entity\Groupe
;
use
App\Entity\User
;
use
App\Entity\Usergroup
;
...
...
@@ -188,14 +189,16 @@ class AdherentAdmin extends AbstractAdmin
->
end
();
if
(
!
empty
(
$adherent
)
&&
!
empty
(
$adherent
->
getEmlcAccount
())
)
{
$em
=
$this
->
getConfigurationPool
()
->
getContainer
()
->
get
(
'doctrine'
)
->
getManager
();
$balance
=
$adherent
->
getEmlcAccount
()
->
getBalance
();
$mlc
=
$em
->
getRepository
(
GlobalParameter
::
class
)
->
val
(
GlobalParameter
::
MLC_SYMBOL
);
$formMapper
->
tab
(
'General'
)
->
with
(
'Solde'
,
[
'class'
=>
'col-md-
5
'
])
->
with
(
'Solde'
,
[
'class'
=>
'col-md-
7
'
])
->
add
(
'idmlc'
,
TextType
::
class
,
[
'disabled'
=>
true
,
'label'
=>
'Solde e-
mac :
'
,
'data'
=>
$balance
.
'
emac'
])
'label'
=>
'Solde e-
'
.
$mlc
.
' :
'
,
'data'
=>
$balance
.
'
'
.
$mlc
])
->
end
()
->
end
();
}
...
...
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