周结算金额bug修改

master
zhengyongxing 4 years ago
parent 86769746ef
commit f0cbe3cafb

@ -412,6 +412,11 @@ class CompanyStatementPoolController extends ThinkController
$v['statement_info'] = $handle_data; $v['statement_info'] = $handle_data;
$v['row'] = $row; $v['row'] = $row;
if ($v['row'] == '0') {
$v['row'] = 1;
}
if($is_export){ if($is_export){
if($v['withdraw_type'] != 3) { if($v['withdraw_type'] != 3) {
$v['statement_money'] .="P{$cline}-Q{$cline},2)"; $v['statement_money'] .="P{$cline}-Q{$cline},2)";
@ -457,7 +462,17 @@ class CompanyStatementPoolController extends ThinkController
foreach ($gv as $sk => $sv) { foreach ($gv as $sk => $sv) {
$game_data['account'] = $sk; $game_data['account'] = $sk;
$game_data['row'] = count($sv); $game_data['row'] = count($sv);
if ($game_data['row'] == '0') {
$game_data['row'] = 1;
}
$game_data['time_row'] = count($sv); $game_data['time_row'] = count($sv);
if ($game_data['time_row'] == '0') {
$game_data['time_row'] = 1;
}
$game_data['time'] = $gk; $game_data['time'] = $gk;
//周结算金额计算 //周结算金额计算
for ($i=0;;$i++) { for ($i=0;;$i++) {
@ -685,6 +700,9 @@ class CompanyStatementPoolController extends ThinkController
$count['statement_money'] += $v['statement_money']; $count['statement_money'] += $v['statement_money'];
} }
$v['statement_count'] = count($v['statement_info']); $v['statement_count'] = count($v['statement_info']);
if($v['statement_count'] == '0'){
$v['statement_count'] = 1;
}
} }
if($is_export){ if($is_export){
@ -758,6 +776,7 @@ class CompanyStatementPoolController extends ThinkController
} }
return $handle_data; return $handle_data;
} }

@ -149,6 +149,7 @@
<td rowspan="{$com['statement_info'][0]['row']}">{$com['statement_info'][0]['account']}</td> <td rowspan="{$com['statement_info'][0]['row']}">{$com['statement_info'][0]['account']}</td>
<else /> <else />
<td>-</td> <td>-</td>
<td>-</td>
</notempty> </notempty>
<td rowspan="{$com.row}">{$com.company_info.company_belong_str}</td> <td rowspan="{$com.row}">{$com.company_info.company_belong_str}</td>
@ -168,7 +169,7 @@
<td><span class="sum_money_span">{$com['statement_info'][0]['game_list'][0]['sum_money']}</span></td> <td><span class="sum_money_span">{$com['statement_info'][0]['game_list'][0]['sum_money']}</span></td>
<td rowspan="{$com.row}">{$com['reward']}</td> <td rowspan="{$com.row}">{$com['reward']}</td>
<td rowspan="{$com.row}">{$com['fine']}</td> <td rowspan="{$com.row}">{$com['fine']}</td>
<td rowspan="{$com['statement_info'][0]['time_row']}">{$com['statement_info'][0]['week_amount']}</td> <td rowspan="{$com['statement_info'][0]['time_row']}">{$com['statement_info'][0]['week_amount']||default="0"}</td>
<td rowspan="{$com.row}">{$com['statement_money']}</td> <td rowspan="{$com.row}">{$com['statement_money']}</td>
<else /> <else />
@ -235,9 +236,8 @@
<foreach name="com['statement_info']" item="account" key="akey"> <foreach name="com['statement_info']" item="account" key="akey">
<if condition="$akey gt 0"> <if condition="$akey gt 0">
<tr> <tr>
<notempty name="account['time']">
<td rowspan="{$account['time_row']}">{$account['time']}</td> <td rowspan="{$account['time_row']}">{$account['time']|default="-----"}</td>
</notempty>
<td rowspan="{$account['row']}">{$account['account']}</td> <td rowspan="{$account['row']}">{$account['account']}</td>
<notempty name="account['game_list']"> <notempty name="account['game_list']">

Loading…
Cancel
Save