update
This commit is contained in:
parent
841466483d
commit
9317e6776b
@ -364,7 +364,7 @@ async def get_order_detail(
|
|||||||
# 计算配送员分账金额
|
# 计算配送员分账金额
|
||||||
deliveryman_share = 0
|
deliveryman_share = 0
|
||||||
if current_user.delivery_commission_rate is not None:
|
if current_user.delivery_commission_rate is not None:
|
||||||
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), 2)
|
||||||
|
|
||||||
# 如果有配送员 id,则获取配送员信息
|
# 如果有配送员 id,则获取配送员信息
|
||||||
if order.deliveryman_user_id:
|
if order.deliveryman_user_id:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user