Merge pull request '财务打款系统bug修复' (#237) from feature/add_item into master

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/237
master
廖金灵 4 years ago
commit 64a4923564

@ -374,13 +374,16 @@ class CompanyStatementController extends ThinkController
if(is_array($dbres['statement_info'])) {
foreach ($dbres['statement_info'] as $key => $value) {
$dbres['pay_amount_other'] += $value['platform_money'];
if ($value['game_name'] == "罚款" || $value['game_name'] == "奖励") {
$dbres['statement_info'][$key]['pay_amount'] = "-";
}
$real_statement_amount
= number_format($value['platform_money']*(1-$value['promote_ratio']/100)*($value['ratio']/100)*(1-$value["fax_ratio"]/100),2,'.','');;
= number_format(($value['platform_money']+$value['aggregate_money'])*(1-$value['promote_ratio']/100)*($value['ratio']/100)*(1-$value["fax_ratio"]/100),2,'.','');
if (!$dbres['statement_info'][$key]['other_amount']) {
$dbres['statement_info'][$key]['other_amount'] = number_format($value["sum_money"] - $real_statement_amount,2,'.','');
}
@ -680,7 +683,7 @@ class CompanyStatementController extends ThinkController
$statement_info[$k]['sum_amount'] = $v["platform_money"] + $v["aggregate_money"] ;
$real_statement_amount
= number_format($v['platform_money']*(1-$v['promote_ratio']/100)*($v['ratio']/100)*(1-$v["fax_ratio"]/100),2,'.','');;
= number_format(($v['platform_money']+$value['aggregate_money'])*(1-$v['promote_ratio']/100)*($v['ratio']/100)*(1-$v["fax_ratio"]/100),2,'.','');
if (!$statement_info[$k]['other_amount']) {
$statement_info[$k]['other_amount'] = number_format($v["sum_money"] - $real_statement_amount,2,'.','');
}

@ -210,12 +210,12 @@
<th rowspan="2" style="border-right: solid 1px #b6cad2;">渠道费率</th>
<th rowspan="2" style="border-right: solid 1px #b6cad2;">税费费率</th>
<th rowspan="2" style="border-right: solid 1px #b6cad2;">其他</th>
<th>结算金额</th>
</tr>
<tr>
<th style="font-size: 10px;font-weight: 400;max-width: 100px;line-height: 1.2;">
结算金额=平台总额*1-渠道费)*分成比例*(1-税费费率)</th>
<th rowspan="2" style="border-right: solid 1px #b6cad2;">结算金额</th>
</tr>
<!-- <tr>-->
<!-- <th style="font-size: 10px;font-weight: 400;max-width: 100px;line-height: 1.2;">-->
<!-- 结算金额=平台总额*1-渠道费)*分成比例*(1-税费费率)</th>-->
<!-- </tr>-->
</thead>
<!-- 列表 -->
@ -373,11 +373,11 @@
<td>${it.statement_begin_time}~${it.statement_end_time}</td>
<td>${it.game_name}</td>
{@if it.statement_type==1}
<td>-${it.pay_amount}元</td>
<td>-${it.platform_money}元</td>
{@else}
<td>${it.pay_amount}元</td>
<td>${it.platform_money}元</td>
{@/if}
<td>${it.aggregate_money}</td>
<td>${it.aggregate_money}</td>
{@if it.statement_type==0}
<td><input type="text" class="txt statementchange" name="ratio" data-index ="${index}" data-change="statement_info[${index}]['ratio']" value="${it.ratio}" style="width: 40px;">%</td>
@ -404,7 +404,7 @@
<tr>
<td>合计</td>
<td></td>
<td>${pay_amount}元</td>
<td>${pay_amount_other}元</td>
<td></td>
<td></td>
<td></td>

Loading…
Cancel
Save