|
|
|
@ -374,13 +374,16 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
|
|
|
|
|
if(is_array($dbres['statement_info'])) {
|
|
|
|
|
foreach ($dbres['statement_info'] as $key => $value) {
|
|
|
|
|
|
|
|
|
|
$dbres['pay_amount_other'] += $value['platform_money'];
|
|
|
|
|
|
|
|
|
|
if ($value['game_name'] == "罚款" || $value['game_name'] == "奖励") {
|
|
|
|
|
$dbres['statement_info'][$key]['pay_amount'] = "-";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$real_statement_amount
|
|
|
|
|
= number_format($value['platform_money']*(1-$value['promote_ratio']/100)*($value['ratio']/100)*(1-$value["fax_ratio"]/100),2,'.','');;
|
|
|
|
|
= number_format(($value['platform_money']+$value['aggregate_money'])*(1-$value['promote_ratio']/100)*($value['ratio']/100)*(1-$value["fax_ratio"]/100),2,'.','');
|
|
|
|
|
|
|
|
|
|
if (!$dbres['statement_info'][$key]['other_amount']) {
|
|
|
|
|
$dbres['statement_info'][$key]['other_amount'] = number_format($value["sum_money"] - $real_statement_amount,2,'.','');
|
|
|
|
|
}
|
|
|
|
@ -680,7 +683,7 @@ class CompanyStatementController extends ThinkController
|
|
|
|
|
$statement_info[$k]['sum_amount'] = $v["platform_money"] + $v["aggregate_money"] ;
|
|
|
|
|
|
|
|
|
|
$real_statement_amount
|
|
|
|
|
= number_format($v['platform_money']*(1-$v['promote_ratio']/100)*($v['ratio']/100)*(1-$v["fax_ratio"]/100),2,'.','');;
|
|
|
|
|
= number_format(($v['platform_money']+$value['aggregate_money'])*(1-$v['promote_ratio']/100)*($v['ratio']/100)*(1-$v["fax_ratio"]/100),2,'.','');
|
|
|
|
|
if (!$statement_info[$k]['other_amount']) {
|
|
|
|
|
$statement_info[$k]['other_amount'] = number_format($v["sum_money"] - $real_statement_amount,2,'.','');
|
|
|
|
|
}
|
|
|
|
|