Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos-tav
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
agplv3
kohinos-tav
Commits
35151662
Commit
35151662
authored
Mar 08, 2024
by
Damien Moulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: calculate encaissement max amount based on conventionnement
parent
96a0da26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
EncaissementFormType.php
src/Form/Type/EncaissementFormType.php
+10
-0
encaissement_page.html.twig
templates/themes/kohinos/tav/encaissement_page.html.twig
+8
-0
No files found.
src/Form/Type/EncaissementFormType.php
View file @
35151662
...
...
@@ -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
()
...
...
templates/themes/kohinos/tav/encaissement_page.html.twig
View file @
35151662
...
...
@@ -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/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment