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
e66f1eb8
Commit
e66f1eb8
authored
Oct 29, 2017
by
Gabriel Detraz
Committed by
root
Oct 29, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug add cotis
parent
12f18488
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
cotisations/models.py
cotisations/models.py
+2
-1
No files found.
cotisations/models.py
View file @
e66f1eb8
...
...
@@ -47,6 +47,7 @@ from __future__ import unicode_literals
from
dateutil.relativedelta
import
relativedelta
from
django.db
import
models
from
django.db.models
import
Q
from
django.db.models.signals
import
post_save
,
post_delete
from
django.dispatch
import
receiver
from
django.forms
import
ValidationError
...
...
@@ -170,7 +171,7 @@ class Vente(models.Model):
cotisation
=
Cotisation
(
vente
=
self
)
cotisation
.
type_cotisation
=
self
.
type_cotisation
if
date_start
:
end_
adhes
ion
=
Cotisation
.
objects
.
filter
(
end_
cotisat
ion
=
Cotisation
.
objects
.
filter
(
vente__in
=
Vente
.
objects
.
filter
(
facture__in
=
Facture
.
objects
.
filter
(
user
=
self
.
facture
.
user
...
...
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