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
a8a904e4
Commit
a8a904e4
authored
Aug 27, 2022
by
Julien Jorry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ADMIN export : Add simple email into prestataire and solidoume export
parent
a7127e65
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
1 deletions
+33
-1
PrestataireAdmin.php
src/Admin/PrestataireAdmin.php
+1
-1
SolidoumeAdmin.php
src/Admin/SolidoumeAdmin.php
+17
-0
Adherent.php
src/Entity/Adherent.php
+8
-0
Prestataire.php
src/Entity/Prestataire.php
+7
-0
No files found.
src/Admin/PrestataireAdmin.php
View file @
a8a904e4
...
@@ -802,7 +802,6 @@ class PrestataireAdmin extends AbstractAdmin
...
@@ -802,7 +802,6 @@ class PrestataireAdmin extends AbstractAdmin
$em
->
flush
();
$em
->
flush
();
}
}
/* @TODO : définir champ à exporter */
public
function
getExportFields
()
public
function
getExportFields
()
{
{
return
[
return
[
...
@@ -812,6 +811,7 @@ class PrestataireAdmin extends AbstractAdmin
...
@@ -812,6 +811,7 @@ class PrestataireAdmin extends AbstractAdmin
'Groupe local'
=>
'groupe.name'
,
'Groupe local'
=>
'groupe.name'
,
'Rubriques'
=>
'rubriquesString'
,
'Rubriques'
=>
'rubriquesString'
,
'Gestionnaires'
=>
'usersString'
,
'Gestionnaires'
=>
'usersString'
,
'Gestionnaires emails'
=>
'gestionnairesEmailsString'
,
'Tags'
=>
'etatsString'
,
'Tags'
=>
'etatsString'
,
'Crée le'
=>
'createdAt'
,
'Crée le'
=>
'createdAt'
,
'Mise à jour le'
=>
'updatedAt'
,
'Mise à jour le'
=>
'updatedAt'
,
...
...
src/Admin/SolidoumeAdmin.php
View file @
a8a904e4
...
@@ -226,6 +226,23 @@ class SolidoumeAdmin extends AbstractAdmin
...
@@ -226,6 +226,23 @@ class SolidoumeAdmin extends AbstractAdmin
return
$actions
;
return
$actions
;
}
}
public
function
getExportFields
()
{
return
[
'Id'
=>
'id'
,
'Adhérent'
=>
'adherent.fullname'
,
'Adhérent email'
=>
'adherent.email'
,
'Date de prélèvement'
=>
'paiementDate'
,
'Montant'
=>
'amount'
,
'Activé ?'
=>
'enabled'
,
'Récurrent ?'
=>
'isRecurrent'
,
'Don ?'
=>
'isDonation'
,
'Crée le'
=>
'createdAt'
,
'Mise à jour le'
=>
'updatedAt'
,
'Commentaires'
=>
'comments'
,
];
}
/**
/**
* {@inheritdoc}
* {@inheritdoc}
*/
*/
...
...
src/Entity/Adherent.php
View file @
a8a904e4
...
@@ -198,6 +198,14 @@ class Adherent extends AccountableObject implements AccountableInterface
...
@@ -198,6 +198,14 @@ class Adherent extends AccountableObject implements AccountableInterface
return
'Adhérent xxx'
;
return
'Adhérent xxx'
;
}
}
public
function
getEmail
()
:
?
string
{
if
(
!
empty
(
$this
->
getUser
()))
{
return
$this
->
getUser
()
->
getEmail
();
}
return
''
;
}
public
function
getFullname
()
:
string
public
function
getFullname
()
:
string
{
{
$return
=
''
;
$return
=
''
;
...
...
src/Entity/Prestataire.php
View file @
a8a904e4
...
@@ -705,6 +705,13 @@ class Prestataire extends AccountableObject implements AccountableInterface
...
@@ -705,6 +705,13 @@ class Prestataire extends AccountableObject implements AccountableInterface
return
$return
;
return
$return
;
},
$this
->
users
->
getValues
()));
},
$this
->
users
->
getValues
()));
}
public
function
getGestionnairesEmailsString
()
{
return
join
(
' - '
,
array_map
(
function
(
$user
)
{
return
$user
->
getEmail
();
},
$this
->
users
->
getValues
()));
}
}
public
function
getCaissiersString
()
public
function
getCaissiersString
()
...
...
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