feat: 新增过账数据大菜单 (#1027)

This commit is contained in:
chenxi 2026-11-10 10:29:53 +08:00
parent f8d6d4e7ae
commit 92585c04a0
3 changed files with 12 additions and 1 deletions

View File

@ -715,6 +715,12 @@ $navigation = [
['slug' => 'deposit-receivables-report', 'title' => '保证金应收报表'],
],
],
[
'slug' => 'posting-data',
'title' => '过账数据',
'icon' => 'post_add',
'pages' => [],
],
[
'slug' => 'negative-alerts',
'title' => '负数预警',

View File

@ -610,6 +610,10 @@ class NavigationTest extends FeatureTestCase
['原始数据', '账单冲减'],
array_column($orderData['pages'], 'title')
);
$postingIndex = array_search('posting-data', $slugs, true);
$this->assertSame($receivablesIndex + 1, $postingIndex);
$this->assertSame('过账数据', $navigation[$postingIndex]['title']);
$this->assertSame([], $navigation[$postingIndex]['pages']);
$this->assertSame(
['after-sales-expenses', 'promotion-expenses'],
array_column($orderData['pages'][0]['tabs'], 'slug')

View File

@ -15,7 +15,8 @@ class PayablesGroupTest extends TestCase
$grouped = ShowInAdmin::groupPayables($original);
$slugs = array_column($grouped, 'slug');
$index = array_search('payable-items', $slugs, true);
$this->assertSame('store-receivables', $slugs[$index - 1]);
$this->assertSame('store-receivables', $slugs[$index - 2]);
$this->assertSame('posting-data', $slugs[$index - 1]);
$this->assertCount(10, $grouped[$index]['sections']);
$this->assertSame(
['负数预警', '供应商应付(终版)', '供应商对账', '快递应付(终版)', '供应商应付'],