feat: 新增过账数据大菜单 (#1027)
This commit is contained in:
parent
f8d6d4e7ae
commit
92585c04a0
@ -715,6 +715,12 @@ $navigation = [
|
||||
['slug' => 'deposit-receivables-report', 'title' => '保证金应收报表'],
|
||||
],
|
||||
],
|
||||
[
|
||||
'slug' => 'posting-data',
|
||||
'title' => '过账数据',
|
||||
'icon' => 'post_add',
|
||||
'pages' => [],
|
||||
],
|
||||
[
|
||||
'slug' => 'negative-alerts',
|
||||
'title' => '负数预警',
|
||||
|
||||
@ -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')
|
||||
|
||||
@ -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(
|
||||
['负数预警', '供应商应付(终版)', '供应商对账', '快递应付(终版)', '供应商应付'],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user