费用平台汇总补展开票金额 #545

Merged
yueyang merged 1 commits from fix/yueyang-expense-platform-invoice-columns into main 2026-10-25 15:06:58 +08:00
2 changed files with 10 additions and 1 deletions

View File

@ -345,6 +345,8 @@
<thead>
<tr>
<th>平台</th>
<th class="num">开票金额(万)</th>
<th class="num">不开票金额(万)</th>
<th class="num">总金额(万)</th>
</tr>
</thead>
@ -803,7 +805,12 @@
categoryDialogPlatformRows.replaceChildren();
(category.platforms || []).forEach(function (platform) {
var tr = document.createElement('tr');
[platform.platform, formatWan(platform.net)].forEach(function (value, index) {
[
platform.platform,
formatWan(platform.invoice_net),
formatWan(platform.non_invoice_net),
formatWan(platform.net)
].forEach(function (value, index) {
var cell = document.createElement('td');
cell.textContent = value;
if (index > 0) cell.className = 'num';

View File

@ -54,6 +54,8 @@ class ExpenseDetailsDrilldownPageTest extends FeatureTestCase
$platformPanel,
));
$this->assertStringContainsString('<th>平台</th>', $platformPanel[0]);
$this->assertStringContainsString('开票金额(万)', $platformPanel[0]);
$this->assertStringContainsString('不开票金额(万)', $platformPanel[0]);
$this->assertStringContainsString('总金额(万)', $platformPanel[0]);
$this->assertStringNotContainsString('账单名称', $platformPanel[0]);
$this->assertStringNotContainsString('pd-item-summary__toggle', $template);