Commit 16bd1a29 by Aeolus

Merge remote-tracking branch 'origin/test' into dev_aeolus

parents d6b1ff4f e5f70232
......@@ -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