Commit e5f70232 by Aeolus

bug修改

parent e14897ab
......@@ -363,7 +363,10 @@ def rent_money_refund():
production = rent_info.Production
new_total = int(time_price[-1])
refund_money = production.total - new_total
if production.is_return:
refund_money = production.total - new_total
else:
refund_money = rent.deposit - new_total
if refund_money <= 0:
return jsonify(REFUND_MONEY_IS_ZERO)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment