修复代理商 退款bug

This commit is contained in:
“wanyongkang”
2024-10-15 17:02:08 +08:00
parent c74967b113
commit 5305cb50a1
5 changed files with 22 additions and 21 deletions

View File

@@ -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,