|
|
|
@ -216,14 +216,14 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
$this->viewCpPool($infolist,$is_export);
|
|
|
|
|
}elseif($infolist[0]['company_type'] == 1){
|
|
|
|
|
//下游公司
|
|
|
|
|
$this->viewPcPool($infolist,$is_export,$pool_info['withdraw_type']);
|
|
|
|
|
$this->viewPcPool($infolist,$is_export);
|
|
|
|
|
}else{
|
|
|
|
|
$this->viewPuPool($infolist,$is_export,$pool_info['withdraw_type']);
|
|
|
|
|
$this->viewPuPool($infolist,$is_export);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//个人汇总结算查看
|
|
|
|
|
public function viewPuPool(&$infolist,$is_export,$withdraw = 0){
|
|
|
|
|
public function viewPuPool(&$infolist,$is_export){
|
|
|
|
|
$line = 1;
|
|
|
|
|
$count = [];
|
|
|
|
|
//获取对接人
|
|
|
|
@ -251,7 +251,7 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
|
|
|
|
|
foreach($va['game_list'] as $key=>&$val){
|
|
|
|
|
$line ++;
|
|
|
|
|
if($withdraw != 3) {
|
|
|
|
|
if($v['withdraw_type'] != 3) {
|
|
|
|
|
if(isset($val['ratio'])){
|
|
|
|
|
$val['increment_ratio'] = 0;
|
|
|
|
|
}else{
|
|
|
|
@ -260,7 +260,7 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if($is_export){
|
|
|
|
|
if($withdraw != 3) {
|
|
|
|
|
if($v['withdraw_type'] != 3) {
|
|
|
|
|
$val['sum_money'] = "=K{$line}*(L{$line}+M{$line})";
|
|
|
|
|
} else {
|
|
|
|
|
$val['sum_money'] = "=K{$line}*(M{$line})";
|
|
|
|
@ -286,7 +286,13 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
$v['row'] = $row;
|
|
|
|
|
if($is_export){
|
|
|
|
|
|
|
|
|
|
if($v['withdraw_type'] != 3) {
|
|
|
|
|
$v['statement_money'] .="N{$cline}-O{$cline}";
|
|
|
|
|
} else {
|
|
|
|
|
$v['statement_money'] = substr($v['statement_money'],0,strlen($v['statement_money'])-1);
|
|
|
|
|
}
|
|
|
|
|
// dump($v['statement_money']);die();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -300,7 +306,7 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
$this->display("CompanyStatementPool/viewPuPool");
|
|
|
|
|
}
|
|
|
|
|
//下游汇总结算查看
|
|
|
|
|
public function viewPcPool(&$infolist,$is_export,$withdraw = 0){
|
|
|
|
|
public function viewPcPool(&$infolist,$is_export){
|
|
|
|
|
$line = 1;
|
|
|
|
|
$count = [];
|
|
|
|
|
//获取对接人
|
|
|
|
@ -329,7 +335,8 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
$cline = $line+1;
|
|
|
|
|
foreach($v['statement_info'] as $ke=>&$va){
|
|
|
|
|
$line ++;
|
|
|
|
|
if($withdraw != 3) {
|
|
|
|
|
|
|
|
|
|
if($v['withdraw_type'] != 3) {
|
|
|
|
|
if (isset($va['ratio'])) {
|
|
|
|
|
$va['increment_ratio'] = 0;
|
|
|
|
|
} else {
|
|
|
|
@ -338,7 +345,7 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if($is_export){
|
|
|
|
|
if($withdraw != 3) {
|
|
|
|
|
if($v['withdraw_type'] != 3) {
|
|
|
|
|
$va['d_statement_money'] = "=D{$line}*(1-G{$line})*(E{$line}+F{$line})";
|
|
|
|
|
} else {
|
|
|
|
|
$va['d_statement_money'] = "=D{$line}*(F{$line})";
|
|
|
|
@ -354,7 +361,7 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
$v['settlement_contact'] = $Partner[$v['company_id']];
|
|
|
|
|
|
|
|
|
|
if($is_export){
|
|
|
|
|
if ($withdraw != 3) {
|
|
|
|
|
if ($v['withdraw_type'] != 3) {
|
|
|
|
|
$v['statement_money'] = "=SUM(H{$cline}:H{$line})+J{$cline}-I{$cline}";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|