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
ebe5633f
Commit
ebe5633f
authored
Jul 03, 2018
by
Hugo LEVY-FALK
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix le rechargement : la facture est sauvegardée avant la vente.
parent
c9ec5b23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
cotisations/views.py
cotisations/views.py
+2
-3
No files found.
cotisations/views.py
View file @
ebe5633f
...
...
@@ -826,14 +826,13 @@ def recharge(request):
invoice
=
Facture
(
user
=
request
.
user
)
invoice
.
paiement
=
refill_form
.
cleaned_data
[
'payment'
]
invoice
.
valid
=
False
purchase
=
Vente
.
objects
.
create
(
invoice
.
save
()
Vente
.
objects
.
create
(
facture
=
invoice
,
name
=
'solde'
,
prix
=
refill_form
.
cleaned_data
[
'value'
],
number
=
1
)
purchase
.
save
()
invoice
.
save
()
return
invoice
.
paiement
.
end_payment
(
invoice
,
request
)
return
form
({
'rechargeform'
:
refill_form
,
...
...
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