diff --git a/app/Listeners/Menu/ShowInAdmin.php b/app/Listeners/Menu/ShowInAdmin.php index a1158bce..0cfb81f2 100644 --- a/app/Listeners/Menu/ShowInAdmin.php +++ b/app/Listeners/Menu/ShowInAdmin.php @@ -52,7 +52,7 @@ class ShowInAdmin public static function groupPayables(array $navigation): array { - $keys = ['supplier-payables', 'courier-payables', 'raw-board-payables', + $keys = ['supplier-payables-final', 'courier-payables-final', 'supplier-payables', 'courier-payables', 'raw-board-payables', 'lamination-factory-payables', 'paper-materials', 'edge-banding-materials']; $children = array_values(array_filter($navigation, static fn (array $section): bool => in_array($section['slug'], $keys, true))); if ($children === []) { diff --git a/config/business_navigation.php b/config/business_navigation.php index 864a8650..4dcc9b95 100644 --- a/config/business_navigation.php +++ b/config/business_navigation.php @@ -450,6 +450,18 @@ $navigation = [ ['slug' => 'deposit-receivables-report', 'title' => '保证金应收报表'], ], ], + [ + 'slug' => 'supplier-payables-final', + 'title' => '供应商应付(终版)', + 'icon' => 'local_shipping', + 'pages' => [], + ], + [ + 'slug' => 'courier-payables-final', + 'title' => '快递应付(终版)', + 'icon' => 'local_shipping', + 'pages' => [], + ], [ 'slug' => 'supplier-payables', 'title' => '供应商应付', diff --git a/tests/Unit/View/PayablesGroupTest.php b/tests/Unit/View/PayablesGroupTest.php index 75d0688b..acf0c943 100644 --- a/tests/Unit/View/PayablesGroupTest.php +++ b/tests/Unit/View/PayablesGroupTest.php @@ -16,7 +16,8 @@ class PayablesGroupTest extends TestCase $slugs = array_column($grouped, 'slug'); $index = array_search('payable-items', $slugs, true); $this->assertSame('store-receivables', $slugs[$index - 1]); - $this->assertCount(6, $grouped[$index]['sections']); + $this->assertCount(8, $grouped[$index]['sections']); + $this->assertSame(['供应商应付(终版)', '快递应付(终版)'], array_column(array_slice($grouped[$index]['sections'], 0, 2), 'title')); $this->assertContains('inventory-management', $slugs); foreach ($grouped[$index]['sections'] as $section) { $this->assertNotContains($section['slug'], $slugs);