优化下游个人结算

master
chenzhi 4 years ago
parent c110284ad9
commit 963802dc1c

@ -1007,6 +1007,8 @@ class CompanyStatementSetController extends Controller {
if($type < 2 && $RewardRecordRes){
$v['fine'] = $RewardRecordRes['fine'];
$v['reward'] = $RewardRecordRes['reward'];
$v['statement_money'] -= $v['fine'];
$v['statement_money'] += $v['reward'];
}else{
$v['fine'] = 0;
$v['reward'] = 0;
@ -1057,6 +1059,7 @@ class CompanyStatementSetController extends Controller {
$v['platform_amount'] += $p_info['pay_amount'];
$p_info['sum_money']=round($p_info['pay_amount']*$tratio/100,2); //个人等于 结算金额*比例
$v['pay_amount'] += $p_info['sum_money'];
$v['statement_money'] += $p_info['sum_money'];
$p_info['fax_ratio']=$fax_ratio;
$p_info['statement_begin_time']=$statement_begin_time;
$p_info['statement_end_time']=$statement_end_time;
@ -1065,7 +1068,6 @@ class CompanyStatementSetController extends Controller {
}
$v['statement_info'][] = $va;
}
$company_info = [
'account'=>$v['account'],
"company_relation_str"=>$v['company_relation_str'],

Loading…
Cancel
Save