Commit 35151662 by Damien Moulard

WIP: calculate encaissement max amount based on conventionnement

parent 96a0da26
...@@ -51,6 +51,16 @@ class EncaissementFormType extends AbstractType ...@@ -51,6 +51,16 @@ class EncaissementFormType extends AbstractType
]) ])
->add('save', SubmitType::class, ['label' => 'Valider']) ->add('save', SubmitType::class, ['label' => 'Valider'])
; ;
$builder
->add('montantPanier', NumberType::class, [
'label' => 'Montant total du panier : ',
'required' => true,
'attr' => ['autocomplete' => 'off'],
'mapped' => false
])
;
} }
public function getBlockPrefix() public function getBlockPrefix()
......
...@@ -74,7 +74,15 @@ ...@@ -74,7 +74,15 @@
</div> </div>
{% else %} {% else %}
{{ form_row(form.adherent) }} {{ form_row(form.adherent) }}
{% if form.montantPanier is defined %}
{{ form_row(form.montantPanier) }}
<small class="form-text text-muted">Conventionnement du point de vente : 50% ; montant maximum payable en MonA : 10 MonA</small>
{# style="display:none;" #}
{% endif %}
{{ form_row(form.montant) }} {{ form_row(form.montant) }}
<br/> <br/>
{% endif %} {% endif %}
<br/> <br/>
......
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