Project 'cooperatic/kohinos-tav' was moved to 'agplv3/kohinos-tav'. Please update any links and bookmarks that may still have the old path.
Commit 4d623ac5 by Yvon Kerdoncuff

Merge branch '5972-explain-reconversion-frequency-for-presta' into 'ssa-gironde'

add help msg for prestataires to explain reconversion frequency

See merge request cooperatic/kohinos-tav!66
parents e3f5d0de aef6787f
......@@ -20,6 +20,7 @@ use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use App\Enum\ReconversionFrequencyEnum;
use App\Entity\GlobalParameter;
class PrestataireInfosFormType extends AbstractType
{
......@@ -87,6 +88,12 @@ class PrestataireInfosFormType extends AbstractType
]);
if ($this->container->getParameter('tav_env') && $this->container->getParameter('automatisation_reconversion')) {
$mlcName = $this->em->getRepository(GlobalParameter::class)->val(GlobalParameter::MLC_NAME_SMALL);
$helpMsqg = "Fréquence à laquelle je souhaite que la caisse commune de l'alimentation (via l'association Acclimat'action)"
. " me verse en euros la somme des {$mlcName} encaissées dans mon point de vente "
. "(1 {$mlcName} = 1 euro). Le versement se fait via un virement bancaire.";
$builder
->add('reconversionFrequency', ChoiceType::class, [
'choices' => ReconversionFrequencyEnum::getAvailableTypes(),
......@@ -98,6 +105,7 @@ class PrestataireInfosFormType extends AbstractType
'label' => 'Fréquence de reconversion :',
'placeholder' => 'Choisir une option',
'required' => false,
'help' => $helpMsqg
]);
}
......
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