修复代理商 退款bug
This commit is contained in:
@@ -1276,15 +1276,24 @@ FROM product_order where {where} GROUP BY Channel,ProductName order by Channel,
|
||||
re_money = useDay * (refundDayPrice - (product.RefundDayPrice).ToDecimal() * discount.discount / 100) * accountInfo.ConnectCount;
|
||||
}
|
||||
|
||||
|
||||
//佣金
|
||||
var score_money = agentEntity.account - deduct_money + re_money;
|
||||
|
||||
var score_value = re_money - deduct_money;
|
||||
|
||||
|
||||
if (re_money > deduct_money) {
|
||||
score_money = agentEntity.account;
|
||||
score_value = 0;
|
||||
}
|
||||
|
||||
var agnetScoreEntity = new AgentScoreEntity()
|
||||
{
|
||||
agent_id = order.agent_id,
|
||||
order_id = order.Id,
|
||||
score_type = 2,
|
||||
score_value = re_money - deduct_money,
|
||||
score_value = score_value,
|
||||
remark = "客户退款" + account,
|
||||
agent_name = agentEntity.username,
|
||||
op_user = order.UserName,
|
||||
|
||||
Reference in New Issue
Block a user