|
|
@ -241,7 +241,7 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$cline = $line+1;
|
|
|
|
$cline = $line+1;
|
|
|
|
if($is_export){
|
|
|
|
if($is_export){
|
|
|
|
$v['statement_money'] = "=";
|
|
|
|
$v['statement_money'] = "=ROUND(";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$row = 0;
|
|
|
|
$row = 0;
|
|
|
@ -261,44 +261,30 @@ class CompanyStatementPoolController extends ThinkController
|
|
|
|
|
|
|
|
|
|
|
|
if($is_export){
|
|
|
|
if($is_export){
|
|
|
|
if($v['withdraw_type'] != 3) {
|
|
|
|
if($v['withdraw_type'] != 3) {
|
|
|
|
$val['sum_money'] = "=K{$line}*(L{$line}+M{$line})";
|
|
|
|
$val['sum_money'] = "=ROUND(K{$line}*(L{$line}+M{$line}),2)";
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$val['sum_money'] = "=K{$line}*(M{$line})";
|
|
|
|
$val['sum_money'] = "=ROUND(K{$line}*(M{$line}),2)";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// $val['sum_money'] = "=J{$line}*(K{$line}+L{$line})";
|
|
|
|
|
|
|
|
$v['statement_money'] .= "N{$line}+";
|
|
|
|
$v['statement_money'] .= "N{$line}+";
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
$count['platform_amount'] += $val['pay_amount'];
|
|
|
|
$count['platform_amount'] += $val['pay_amount'];
|
|
|
|
$count['sum_money'] += $val['sum_money'];
|
|
|
|
$count['sum_money'] += $val['sum_money'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// if($is_export){
|
|
|
|
|
|
|
|
// //J3*(K3+L3)+M3-N3
|
|
|
|
|
|
|
|
// if($va['statement_type'] > 0){ //罚款服务器费用
|
|
|
|
|
|
|
|
// $va['sum_money'] = "=J{$line}";
|
|
|
|
|
|
|
|
// }else{
|
|
|
|
|
|
|
|
// $va['sum_money'] = "=J{$line}*(K{$line}+L{$line})+M{$line}-N{$line}";
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// }else{
|
|
|
|
|
|
|
|
// $count['platform_amount'] += $va['pay_amount'];
|
|
|
|
|
|
|
|
// $count['sum_money'] += $va['sum_money'];
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$v['row'] = $row;
|
|
|
|
$v['row'] = $row;
|
|
|
|
if($is_export){
|
|
|
|
if($is_export){
|
|
|
|
|
|
|
|
|
|
|
|
if($v['withdraw_type'] != 3) {
|
|
|
|
if($v['withdraw_type'] != 3) {
|
|
|
|
$v['statement_money'] .="O{$cline}-P{$cline}";
|
|
|
|
$v['statement_money'] .="O{$cline}-P{$cline},2)";
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$v['statement_money'] = substr($v['statement_money'],0,strlen($v['statement_money'])-1);
|
|
|
|
$v['statement_money'] = substr($v['statement_money'],0,strlen($v['statement_money'])-1).",2)";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// dump($v['statement_money']);die();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if($is_export){
|
|
|
|
if($is_export){
|
|
|
|
$count["platform_amount"] = "=SUM(K2:K".$line.")";
|
|
|
|
$count["platform_amount"] = "=ROUND(SUM(K2:K".$line."),2)";
|
|
|
|
$count["sum_money"] = "=SUM(Q2:Q".$line.")";
|
|
|
|
$count["sum_money"] = "=ROUND(SUM(Q2:Q".$line."),2)";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->assign("data",$infolist);
|
|
|
|
$this->assign("data",$infolist);
|
|
|
|
$this->assign("count",$count);
|
|
|
|
$this->assign("count",$count);
|
|
|
|