Commit d4212418 by Yvon Kerdoncuff

add solde to presta export + disable tauxreconversion in admin presta in tav_env

parent 4828491c
......@@ -248,6 +248,7 @@ class PrestataireAdmin extends AbstractAdmin
'scale' => 2,
'type' => 'integer',
'help' => 'Si la valeur est nulle, par défaut le taux de reconversion sera de ' . $this->getConfigurationPool()->getContainer()->get('doctrine')->getRepository(GlobalParameter::class)->val(GlobalParameter::RECONVERSION_PRESTATAIRE) . ' %',
'disabled' => $this->getConfigurationPool()->getContainer()->getParameter('tav_env') #confusing for ssa/tav
])
->add('acceptemlc', null, [
'label' => 'Accepte la monnaie électronique ?',
......@@ -873,7 +874,7 @@ class PrestataireAdmin extends AbstractAdmin
public function getExportFields()
{
return [
$exportFields = [
'Id' => 'id',
'Activé ?' => 'enabled',
'Raison' => 'raison',
......@@ -885,6 +886,10 @@ class PrestataireAdmin extends AbstractAdmin
'Crée le' => 'createdAt',
'Mise à jour le' => 'updatedAt',
];
if($this->getConfigurationPool()->getContainer()->getParameter('tav_env')) {
$exportFields['Solde'] = 'emlcAccount.balance';
}
return $exportFields;
}
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