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
f45715d4
Commit
f45715d4
authored
Apr 29, 2020
by
魏强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update;
parent
fca3a629
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
Controller/RentController.py
+16
-16
No files found.
Controller/RentController.py
View file @
f45715d4
...
...
@@ -433,14 +433,14 @@ def force_refund():
production
.
refund_no
=
rent_refund_no
production
.
return_hatch_no
=
production
.
rent_hatch_no
rent_refund_log
=
RentRefund
()
rent_refund_log
.
refund_no
=
rent_refund_no
rent_refund_log
.
production_id
=
production
.
id
rent_refund_log
.
fee
=
int
(
money
)
rent_refund_log
.
comment
=
comment
rent_refund_log
.
created_at
=
datetime
.
datetime
.
now
()
rent_refund_log
.
updated_at
=
datetime
.
datetime
.
now
()
db
.
session
.
add
(
rent_refund_log
)
#
rent_refund_log = RentRefund()
#
rent_refund_log.refund_no = rent_refund_no
#
rent_refund_log.production_id = production.id
#
rent_refund_log.fee = int(money)
#
rent_refund_log.comment = comment
#
rent_refund_log.created_at = datetime.datetime.now()
#
rent_refund_log.updated_at = datetime.datetime.now()
#
db.session.add(rent_refund_log)
db
.
session
.
add
(
production
)
db
.
session
.
add
(
rent
)
...
...
@@ -517,17 +517,17 @@ def rent_money_liuyuan():
rent_info
.
Rent
.
real_total
-=
int
(
money
)
rent_info
.
Rent
.
back_money
+=
int
(
money
)
rent_refund_log
=
RentRefund
()
rent_refund_log
.
refund_no
=
rent_refund_no
rent_refund_log
.
production_id
=
rent_info
.
Production
.
id
rent_refund_log
.
fee
=
int
(
money
)
rent_refund_log
.
comment
=
comment
rent_refund_log
.
created_at
=
datetime
.
datetime
.
now
()
rent_refund_log
.
updated_at
=
datetime
.
datetime
.
now
()
#
rent_refund_log = RentRefund()
#
rent_refund_log.refund_no = rent_refund_no
#
rent_refund_log.production_id = rent_info.Production.id
#
rent_refund_log.fee = int(money)
#
rent_refund_log.comment = comment
#
rent_refund_log.created_at = datetime.datetime.now()
#
rent_refund_log.updated_at = datetime.datetime.now()
rent_info
.
Production
.
total
-=
int
(
money
)
db
.
session
.
add
(
rent_refund_log
)
#
db.session.add(rent_refund_log)
db
.
session
.
add
(
rent_info
.
Rent
)
db
.
session
.
add
(
rent_info
.
Production
)
db
.
session
.
commit
()
...
...
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