Commit 6aaa608c by Damien Moulard

add fields to adherents export for simplified household allowance

parent 7e886ec1
...@@ -907,7 +907,7 @@ class AdherentAdmin extends AbstractAdmin ...@@ -907,7 +907,7 @@ class AdherentAdmin extends AbstractAdmin
public function getExportFields() public function getExportFields()
{ {
return [ $fields = [
'Id' => 'id', 'Id' => 'id',
'Nom' => 'user.lastname', 'Nom' => 'user.lastname',
'Prénom' => 'user.firstname', 'Prénom' => 'user.firstname',
...@@ -919,6 +919,16 @@ class AdherentAdmin extends AbstractAdmin ...@@ -919,6 +919,16 @@ class AdherentAdmin extends AbstractAdmin
'Crée le' => 'createdAt', 'Crée le' => 'createdAt',
'Mise à jour le' => 'updatedAt', 'Mise à jour le' => 'updatedAt',
]; ];
if ($this->getConfigurationPool()->getContainer()->getParameter('simplified_household_based_allowance')) {
$fields["Composition du foyer"] = 'householdComposition';
$fields["Nombre de personnes du foyer"] = 'householdCount';
$fields["Montant de la cotisation"] = 'cotisationAmount';
$fields["Montant d'allocation"] = 'allocationAmount';
$fields["Solde e-MonA"] = 'emlcAccount.balance';
}
return $fields;
} }
public function getDataSourceIterator() public function getDataSourceIterator()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment