优化结算公式

master
chenzhi 4 years ago
parent 4f1bebc3af
commit a3e0ecb949

@ -468,7 +468,13 @@ class CompanyStatementPoolController extends ThinkController
//个人汇总结算查看
public function viewPuPool(&$infolist,$is_export,$pool_info){
$line = 1;
$count = [];
$count = [
"pool_lack_count"=>0,//本周未结算流水合计
"sum_money"=>0,//打款合计
"pool_lack_count"=>0,//本周未结算流水合计
"st_lack_count"=>0,//本周暂不结算合计
"st_count"=>0//本次应支付
];
$week_line = 2;
$pool_statement_begin_time = date('Y.m.d', $pool_info['statement_begin_time']);
$pool_statement_end_time = date('Y.m.d', $pool_info['statement_end_time']);
@ -517,12 +523,12 @@ class CompanyStatementPoolController extends ThinkController
//本周未结算流水合计
if(!$is_statement){
$count['pool_lack_count'] += $val['pay_amount'];
$count['st_lack_count'] += $val['pay_amount'];
$count['st_lack_count'] += $val['sum_money'];
if($is_export){
$this->setlackCount($line);
}
}else{
$count['st_count'] += $val['pay_amount'];
$count['st_count'] += $val['sum_money'];
}
}

Loading…
Cancel
Save