优化导出新增公式

master
chenzhi 4 years ago
parent 8d156ffb64
commit 24f3489e65

@ -593,8 +593,7 @@ class CompanyStatementPoolController extends ThinkController
}else{ }else{
if($line - $pool_week_line > 1){ if($line - $pool_week_line > 1){
//不连续 //不连续
$preline = $line-2; $pool_week_str .= "K{$pool_week_line})+SUM(K{$line}:";
$pool_week_str .= "K{$preline})+SUM(K{$line}:";
} }
} }
$pool_week_line = $line; $pool_week_line = $line;
@ -617,8 +616,7 @@ class CompanyStatementPoolController extends ThinkController
}else{ }else{
if($line - $pool_lack_line > 1){ if($line - $pool_lack_line > 1){
//不连续 //不连续
$preline = $line-1; $pool_lack_str .= "K{$pool_lack_line})+SUM(K{$line}:";
$pool_lack_str .= "K{$preline})+SUM(K{$line}:";
} }
} }
$pool_lack_line = $line; $pool_lack_line = $line;

Loading…
Cancel
Save