财务打款系统bug修复

master
zhengyongxing 4 years ago
parent 97fae33c43
commit 2892562b2c

@ -367,13 +367,16 @@ class CompanyStatementController extends ThinkController
if(is_array($dbres['statement_info'])) { if(is_array($dbres['statement_info'])) {
foreach ($dbres['statement_info'] as $key => $value) { foreach ($dbres['statement_info'] as $key => $value) {
$dbres['pay_amount_other'] += $value['platform_money'];
if ($value['game_name'] == "罚款" || $value['game_name'] == "奖励") { if ($value['game_name'] == "罚款" || $value['game_name'] == "奖励") {
$dbres['statement_info'][$key]['pay_amount'] = "-"; $dbres['statement_info'][$key]['pay_amount'] = "-";
} }
$real_statement_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']) { if (!$dbres['statement_info'][$key]['other_amount']) {
$dbres['statement_info'][$key]['other_amount'] = number_format($value["sum_money"] - $real_statement_amount,2,'.',''); $dbres['statement_info'][$key]['other_amount'] = number_format($value["sum_money"] - $real_statement_amount,2,'.','');
} }
@ -673,7 +676,7 @@ class CompanyStatementController extends ThinkController
$statement_info[$k]['sum_amount'] = $v["platform_money"] + $v["aggregate_money"] ; $statement_info[$k]['sum_amount'] = $v["platform_money"] + $v["aggregate_money"] ;
$real_statement_amount $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']) { if (!$statement_info[$k]['other_amount']) {
$statement_info[$k]['other_amount'] = number_format($v["sum_money"] - $real_statement_amount,2,'.',''); $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 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> <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> </tr>
<!-- <tr>-->
<!-- <th style="font-size: 10px;font-weight: 400;max-width: 100px;line-height: 1.2;">-->
<!-- 结算金额=平台总额*1-渠道费)*分成比例*(1-税费费率)</th>-->
<!-- </tr>-->
</thead> </thead>
<!-- 列表 --> <!-- 列表 -->
@ -373,11 +373,11 @@
<td>${it.statement_begin_time}~${it.statement_end_time}</td> <td>${it.statement_begin_time}~${it.statement_end_time}</td>
<td>${it.game_name}</td> <td>${it.game_name}</td>
{@if it.statement_type==1} {@if it.statement_type==1}
<td>-${it.pay_amount}元</td> <td>-${it.platform_money}元</td>
{@else} {@else}
<td>${it.pay_amount}元</td> <td>${it.platform_money}元</td>
{@/if} {@/if}
<td>${it.aggregate_money}</td> <td>${it.aggregate_money}</td>
{@if it.statement_type==0} {@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> <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> <tr>
<td>合计</td> <td>合计</td>
<td></td> <td></td>
<td>${pay_amount}元</td> <td>${pay_amount_other}元</td>
<td></td> <td></td>
<td></td> <td></td>
<td></td> <td></td>

Loading…
Cancel
Save