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
fade8390
Commit
fade8390
authored
Dec 14, 2022
by
Félicie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
balance shown
parent
16872361
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
AdherentAdmin.php
src/Admin/AdherentAdmin.php
+14
-13
No files found.
src/Admin/AdherentAdmin.php
View file @
fade8390
...
...
@@ -119,19 +119,6 @@ class AdherentAdmin extends AbstractAdmin
]);
}
protected
function
configureShowFields
(
ShowMapper
$showMapper
)
:
void
{
if
(
$this
->
getConfigurationPool
()
->
getContainer
()
->
getParameter
(
'tav_env'
))
{
$adherent
=
$this
->
getSubject
();
$balance
=
$adherent
->
getEmlcAccount
()
->
getBalance
();
$showMapper
->
with
(
'Solde'
,
[
'class'
=>
'col-md-12'
])
->
add
(
'Solde : '
.
$balance
,
TextType
::
class
)
->
end
()
;
}
}
/**
* {@inheritdoc}
*/
...
...
@@ -199,6 +186,19 @@ class AdherentAdmin extends AbstractAdmin
])
->
end
()
->
end
();
if
(
!
empty
(
$adherent
)
&&
!
empty
(
$adherent
->
getEmlcAccount
())
)
{
$balance
=
$adherent
->
getEmlcAccount
()
->
getBalance
();
$formMapper
->
tab
(
'General'
)
->
with
(
'Solde'
,
[
'class'
=>
'col-md-5'
])
->
add
(
'idmlc'
,
TextType
::
class
,
[
'disabled'
=>
true
,
'label'
=>
'Solde e-mac : '
,
'data'
=>
$balance
.
' emac'
])
->
end
()
->
end
();
}
}
$em
=
$this
->
getConfigurationPool
()
->
getContainer
()
->
get
(
'doctrine'
)
->
getManager
();
...
...
@@ -514,3 +514,4 @@ class AdherentAdmin extends AbstractAdmin
return
$iterator
;
}
}
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