diff --git a/config/business_navigation.php b/config/business_navigation.php index f284727d..7d6bc854 100644 --- a/config/business_navigation.php +++ b/config/business_navigation.php @@ -715,6 +715,12 @@ $navigation = [ ['slug' => 'deposit-receivables-report', 'title' => '保证金应收报表'], ], ], + [ + 'slug' => 'posting-data', + 'title' => '过账数据', + 'icon' => 'post_add', + 'pages' => [], + ], [ 'slug' => 'negative-alerts', 'title' => '负数预警', diff --git a/tests/Feature/Settings/NavigationTest.php b/tests/Feature/Settings/NavigationTest.php index 316ff328..91881fe0 100644 --- a/tests/Feature/Settings/NavigationTest.php +++ b/tests/Feature/Settings/NavigationTest.php @@ -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') diff --git a/tests/Unit/View/PayablesGroupTest.php b/tests/Unit/View/PayablesGroupTest.php index 404d2761..732195f0 100644 --- a/tests/Unit/View/PayablesGroupTest.php +++ b/tests/Unit/View/PayablesGroupTest.php @@ -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( ['负数预警', '供应商应付(终版)', '供应商对账', '快递应付(终版)', '供应商应付'],