|
|
@ -732,7 +732,7 @@ class CompanyStatementSetController extends Controller {
|
|
|
|
|
|
|
|
|
|
|
|
$game['statement_begin_time']=$statement_begin_time;
|
|
|
|
$game['statement_begin_time']=$statement_begin_time;
|
|
|
|
$game['statement_end_time']=$statement_end_time;
|
|
|
|
$game['statement_end_time']=$statement_end_time;
|
|
|
|
$add_data['pay_amount'] += $game['pay_amount'];
|
|
|
|
$add_data['pay_amount'] += round($game['pay_amount'],2);
|
|
|
|
|
|
|
|
|
|
|
|
if($type == 1){
|
|
|
|
if($type == 1){
|
|
|
|
$tratio =$this->getTurnoverRatio($game_all_payment,$tmp_game_ratio['ratio'],$tmp_game_ratio['turnover_ratio']);
|
|
|
|
$tratio =$this->getTurnoverRatio($game_all_payment,$tmp_game_ratio['ratio'],$tmp_game_ratio['turnover_ratio']);
|
|
|
@ -785,7 +785,7 @@ class CompanyStatementSetController extends Controller {
|
|
|
|
// dd($t_game_id);
|
|
|
|
// dd($t_game_id);
|
|
|
|
$temp_game['pay_amount'] =$this->getRelationGameIdSpend($add_data['company_id'],$t_game_id,$tmp_game_ratio['begintime'],$tmp_game_ratio['endtime']);
|
|
|
|
$temp_game['pay_amount'] =$this->getRelationGameIdSpend($add_data['company_id'],$t_game_id,$tmp_game_ratio['begintime'],$tmp_game_ratio['endtime']);
|
|
|
|
$temp_game['pay_amount'] -=0;
|
|
|
|
$temp_game['pay_amount'] -=0;
|
|
|
|
$add_data['pay_amount'] += $temp_game['pay_amount'];
|
|
|
|
$add_data['pay_amount'] += round($temp_game['pay_amount'],2);
|
|
|
|
|
|
|
|
|
|
|
|
if($type == 1){
|
|
|
|
if($type == 1){
|
|
|
|
|
|
|
|
|
|
|
@ -1686,7 +1686,7 @@ class CompanyStatementSetController extends Controller {
|
|
|
|
|
|
|
|
|
|
|
|
$v['platform_amount'] += $p_info['pay_amount'];
|
|
|
|
$v['platform_amount'] += $p_info['pay_amount'];
|
|
|
|
$p_info['sum_money']=round($p_info['pay_amount']*$tratio/100,2); //个人等于 结算金额*比例
|
|
|
|
$p_info['sum_money']=round($p_info['pay_amount']*$tratio/100,2); //个人等于 结算金额*比例
|
|
|
|
$v['pay_amount'] += $p_info['sum_money'];
|
|
|
|
$v['pay_amount'] += round($p_info['sum_money'],2);;
|
|
|
|
$v['statement_money'] += $p_info['sum_money'];
|
|
|
|
$v['statement_money'] += $p_info['sum_money'];
|
|
|
|
$p_info['fax_ratio']=$fax_ratio;
|
|
|
|
$p_info['fax_ratio']=$fax_ratio;
|
|
|
|
$p_info['statement_begin_time']=$statement_begin_time;
|
|
|
|
$p_info['statement_begin_time']=$statement_begin_time;
|
|
|
@ -1763,7 +1763,7 @@ class CompanyStatementSetController extends Controller {
|
|
|
|
|
|
|
|
|
|
|
|
$v['platform_amount'] += $temp_game['pay_amount'];
|
|
|
|
$v['platform_amount'] += $temp_game['pay_amount'];
|
|
|
|
$temp_game['sum_money']=round($temp_game['pay_amount']*$tratio/100,2); //个人等于 结算金额*比例
|
|
|
|
$temp_game['sum_money']=round($temp_game['pay_amount']*$tratio/100,2); //个人等于 结算金额*比例
|
|
|
|
$v['pay_amount'] += $temp_game['sum_money'];
|
|
|
|
$v['pay_amount'] += round($temp_game['sum_money'],2);
|
|
|
|
$v['statement_money'] += $temp_game['sum_money'];
|
|
|
|
$v['statement_money'] += $temp_game['sum_money'];
|
|
|
|
|
|
|
|
|
|
|
|
$temp_game['fax_ratio']=$fax_ratio-0;
|
|
|
|
$temp_game['fax_ratio']=$fax_ratio-0;
|
|
|
|