Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tour_business
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏强
tour_business
Commits
f728af7b
Commit
f728af7b
authored
Jun 24, 2020
by
Aeolus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
31e044ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Controller/RentController.py
+4
-3
No files found.
Controller/RentController.py
View file @
f728af7b
...
@@ -338,6 +338,7 @@ def rent_money_refund():
...
@@ -338,6 +338,7 @@ def rent_money_refund():
else
:
else
:
return
jsonify
(
BASE_RESPONSE
(
error_code
=-
1
,
error_message
=
'refund failed'
)
.
to_dict
())
return
jsonify
(
BASE_RESPONSE
(
error_code
=-
1
,
error_message
=
'refund failed'
)
.
to_dict
())
@route_rent.route
(
'/rent_money_refund_new'
,
methods
=
[
'GET'
,
'POST'
])
@route_rent.route
(
'/rent_money_refund_new'
,
methods
=
[
'GET'
,
'POST'
])
def
rent_money_refund_new
():
def
rent_money_refund_new
():
json_data
=
request
.
get_json
()
json_data
=
request
.
get_json
()
...
@@ -381,9 +382,9 @@ def rent_money_refund_new():
...
@@ -381,9 +382,9 @@ def rent_money_refund_new():
rent_real_total
+=
new_total
rent_real_total
+=
new_total
rent_agent_total
+=
new_total
rent_agent_total
+=
new_total
else
:
else
:
rent_total
+=
tmp
.
total
rent_total
+=
tmp
.
total
if
tmp
.
total
is
not
None
else
0
rent_real_total
+=
tmp
.
total
rent_real_total
+=
tmp
.
total
if
tmp
.
total
is
not
None
else
0
rent_agent_total
+=
tmp
.
agent_total
rent_agent_total
+=
tmp
.
agent_total
if
tmp
.
agent_total
is
not
None
else
0
rent_back_money
=
rent
.
deposit
*
rent
.
number
-
rent_total
rent_back_money
=
rent
.
deposit
*
rent
.
number
-
rent_total
...
...
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