新增应付款项终版目录 #170
@ -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 === []) {
|
||||
|
||||
@ -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' => '供应商应付',
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user