新增线上线下结算统计

master
chenzhi 4 years ago
parent 7869d734ef
commit e2882cc5aa

@ -740,7 +740,9 @@ class CompanyStatementPoolController extends ThinkController
"sum_money"=>0,//打款合计 "sum_money"=>0,//打款合计
"pool_lack_count"=>0,//本周未结算流水合计 "pool_lack_count"=>0,//本周未结算流水合计
"st_lack_count"=>0,//本周暂不结算合计 "st_lack_count"=>0,//本周暂不结算合计
"st_count"=>0//本次应支付 "st_count"=>0,//本次应支付
'online_pay'=>0,//线上支付
'offline_pay'=>0//线下支付
]; ];
$week_line = 2; $week_line = 2;
$pool_statement_begin_time = date('Y.m.d', $pool_info['statement_begin_time']); $pool_statement_begin_time = date('Y.m.d', $pool_info['statement_begin_time']);
@ -810,11 +812,16 @@ class CompanyStatementPoolController extends ThinkController
$count['week_money'] += $va['week_amount']; $count['week_money'] += $va['week_amount'];
$count['sum_money'] += $va['week_amount']; $count['sum_money'] += $va['week_amount'];
} }
if(!$is_statement){ if(!$is_statement){
$count['st_lack_count'] += $v['statement_money']; $count['st_lack_count'] += $v['statement_money'];
}else{ }else{
$count['st_count'] += $v['statement_money']; $count['st_count'] += $v['statement_money'];
if($v['is_payment'] == 1){
//线上
$count['online_pay'] += $v['statement_money'];
}else{
$count['offline_pay'] += $v['statement_money'];
}
} }
$v['row'] = $row; $v['row'] = $row;
@ -842,7 +849,9 @@ class CompanyStatementPoolController extends ThinkController
$count["st_lack_count"] = '=ROUND(SUMIFS(T2:T'.$line.',Y2:Y'.$line.',"否"),2)'; $count["st_lack_count"] = '=ROUND(SUMIFS(T2:T'.$line.',Y2:Y'.$line.',"否"),2)';
//本次应支付 //本次应支付
$count["st_count"] = '=ROUND(SUMIFS(T2:T'.$line.',Y2:Y'.$line.',"是"),2)'; $count["st_count"] = '=ROUND(SUMIFS(T2:T'.$line.',Y2:Y'.$line.',"是"),2)';
$count["online_pay"] = '=ROUND(SUMIFS(T2:T'.$line.',Y2:Y'.$line.',"是",X2:X'.$line.',"是"),2)';
$count["offline_pay"] = '=ROUND(SUMIFS(T2:T'.$line.',Y2:Y'.$line.',"是",X2:X'.$line.',"否"),2)';
} }
$count["platform_amount"] = "=ROUND(SUM(K2:K".$line."),2)"; $count["platform_amount"] = "=ROUND(SUM(K2:K".$line."),2)";
$count["week_money"] = "=ROUND(SUM(S2:S".$line."),2)"; $count["week_money"] = "=ROUND(SUM(S2:S".$line."),2)";

@ -320,7 +320,12 @@
<td colspan="5" rowspan="3"></td> <td colspan="5" rowspan="3"></td>
<td colspan="3">打款合计:</td> <td colspan="3">打款合计:</td>
<td>{$count.sum_money}</td> <td>{$count.sum_money}</td>
<td colspan="6" rowspan="3"></td>
<td></td>
<td>线上支付:</td>
<td>{$count.online_pay}</td>
<td colspan="3" rowspan="3"></td>
<if condition="!$is_export"> <if condition="!$is_export">
<td rowspan="3"></td> <td rowspan="3"></td>
</if> </if>
@ -331,6 +336,11 @@
<td>{$count.pool_lack_count}</td> <td>{$count.pool_lack_count}</td>
<td colspan="3">本周暂不结算合计:</td> <td colspan="3">本周暂不结算合计:</td>
<td>{$count.st_lack_count}</td> <td>{$count.st_lack_count}</td>
<td></td>
<td>线下支付:</td>
<td>{$count.offline_pay}</td>
</tr> </tr>
<tr> <tr>
@ -338,6 +348,10 @@
<td></td> <td></td>
<td colspan="3">本次应支付:</td> <td colspan="3">本次应支付:</td>
<td>{$count.st_count}</td> <td>{$count.st_count}</td>
<td></td>
<td></td>
<td></td>
</tr> </tr>
<else /> <else />

Loading…
Cancel
Save