Commit 35151662 by Damien Moulard

WIP: calculate encaissement max amount based on conventionnement

parent 96a0da26
......@@ -51,6 +51,16 @@ class EncaissementFormType extends AbstractType
])
->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()
......
......@@ -74,7 +74,15 @@
</div>
{% else %}
{{ 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) }}
<br/>
{% endif %}
<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