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
fa88a9b2
Commit
fa88a9b2
authored
Jun 24, 2020
by
Aeolus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退款接口修改代理商收入
parent
bcd8e6e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
Controller/RentController.py
+3
-0
No files found.
Controller/RentController.py
View file @
fa88a9b2
...
...
@@ -306,8 +306,10 @@ def rent_money_refund():
rent_total
=
rent_info
.
Rent
.
total
-
rent_info
.
Production
.
total
rent_real_total
=
rent_info
.
Rent
.
real_total
-
real_single_refund
rent_agent_total
=
rent_info
.
Rent
.
agent_total
-
real_single_refund
rent_info
.
Rent
.
total
=
rent_total
if
rent_total
>
0
else
0
rent_info
.
Rent
.
real_total
=
rent_real_total
if
rent_real_total
>
0
else
0
rent_info
.
Rent
.
agent_total
=
rent_agent_total
if
rent_agent_total
>
0
else
0
data
=
{
"out_refund_no"
:
rent_refund_no
,
...
...
@@ -327,6 +329,7 @@ def rent_money_refund():
rent_refund
.
updated_at
=
datetime
.
datetime
.
now
()
rent_info
.
Production
.
total
=
0
rent_info
.
Production
.
agent_total
=
0
db
.
session
.
add
(
rent_refund
)
db
.
session
.
add
(
rent_info
.
Rent
)
...
...
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