|
|
@ -593,8 +593,10 @@ class CompanyStatementController extends ThinkController
|
|
|
|
$StatementInfo = M("company_statement_info","tab_");
|
|
|
|
$StatementInfo = M("company_statement_info","tab_");
|
|
|
|
$company_info = $va['company_info'];
|
|
|
|
$company_info = $va['company_info'];
|
|
|
|
$LackStatement = M("company_lack_statement_info","tab_");
|
|
|
|
$LackStatement = M("company_lack_statement_info","tab_");
|
|
|
|
|
|
|
|
$no_pool_money = 300;
|
|
|
|
//统一比例字段
|
|
|
|
//统一比例字段
|
|
|
|
if($k == "up" || $k=="ups"){
|
|
|
|
if($k == "up" || $k=="ups"){
|
|
|
|
|
|
|
|
$no_pool_money = 500;
|
|
|
|
foreach ($va['statement_info'] as $key => &$value) {
|
|
|
|
foreach ($va['statement_info'] as $key => &$value) {
|
|
|
|
if($company_info['pay_type'] == 2){
|
|
|
|
if($company_info['pay_type'] == 2){
|
|
|
|
$value["ratio"] = $value["second_ratio"];
|
|
|
|
$value["ratio"] = $value["second_ratio"];
|
|
|
@ -614,7 +616,7 @@ class CompanyStatementController extends ThinkController
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//创建基础未满基础信息
|
|
|
|
//创建基础未满基础信息
|
|
|
|
if($va['statement_money'] < 300){
|
|
|
|
if($va['statement_money'] < $no_pool_money){
|
|
|
|
$lackcompany =[
|
|
|
|
$lackcompany =[
|
|
|
|
"company_id"=>$company_info['id'],
|
|
|
|
"company_id"=>$company_info['id'],
|
|
|
|
"company_type"=>$v['company_type'],
|
|
|
|
"company_type"=>$v['company_type'],
|
|
|
@ -649,8 +651,8 @@ class CompanyStatementController extends ThinkController
|
|
|
|
array_multisort($last_names,SORT_DESC,SORT_STRING,$va['statement_info']);
|
|
|
|
array_multisort($last_names,SORT_DESC,SORT_STRING,$va['statement_info']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if($va['statement_money'] < 300){
|
|
|
|
if($va['statement_money'] < $no_pool_money){
|
|
|
|
//依旧小于300存旧版
|
|
|
|
//依旧小于不结算金额存旧版
|
|
|
|
if($lackcompany['pay_amount'] > 0){
|
|
|
|
if($lackcompany['pay_amount'] > 0){
|
|
|
|
$lask_id = $LackStatement->add($lackcompany);
|
|
|
|
$lask_id = $LackStatement->add($lackcompany);
|
|
|
|
$v['create_lack_ids'][] =$lask_id;
|
|
|
|
$v['create_lack_ids'][] =$lask_id;
|
|
|
|