Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
re2o
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o
Commits
b85384b2
Commit
b85384b2
authored
Dec 29, 2018
by
Hugo LEVY-FALK
Committed by
chirac
Jan 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not fail on empty discount
parent
f612e419
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
cotisations/forms.py
cotisations/forms.py
+1
-1
No files found.
cotisations/forms.py
View file @
b85384b2
...
...
@@ -133,7 +133,7 @@ class DiscountForm(Form):
amount
=
discount
/
100
*
invoice_price
else
:
amount
=
discount
if
amount
>
0
:
if
amount
:
name
=
_
(
"{}% discount"
)
if
is_relative
else
_
(
"{}€ discount"
)
name
=
name
.
format
(
discount
)
Vente
.
objects
.
create
(
...
...
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