update
This commit is contained in:
parent
9ecc590c9d
commit
44305b6dfd
@ -351,6 +351,9 @@ async def get_order_detail(
|
|||||||
return error_response(code=404, message="订单不存在")
|
return error_response(code=404, message="订单不存在")
|
||||||
|
|
||||||
# 计算配送员分账金额
|
# 计算配送员分账金额
|
||||||
|
deliveryman_share = 0
|
||||||
|
|
||||||
|
if current_user.delivery_commission_rate:
|
||||||
deliveryman_share = round(order.original_amount * (current_user.delivery_commission_rate / 100.0), 1)
|
deliveryman_share = round(order.original_amount * (current_user.delivery_commission_rate / 100.0), 1)
|
||||||
|
|
||||||
# 如果有配送员 id,则获取配送员信息
|
# 如果有配送员 id,则获取配送员信息
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user