财务台账:修复页签筛选提交丢失条件
This commit is contained in:
parent
6feea82305
commit
6c81dfc3bb
@ -17,7 +17,8 @@
|
||||
], static fn ($value): bool => trim((string) $value) !== ''));
|
||||
$money = static fn ($value): string => $value === null || $value === '' ? '' : number_format((float) $value, 2);
|
||||
$date = static fn ($value): string => $value ? \Illuminate\Support\Carbon::parse($value)->format('Y-m-d') : '';
|
||||
$tabUrl = static fn (string $tab): string => route('business.pages.show', ['section' => 'financial-ledger', 'page' => 'ledger', 'tab' => $tab]);
|
||||
$ledgerPageUrl = route('business.pages.show', ['section' => 'financial-ledger', 'page' => 'ledger']);
|
||||
$tabUrl = static fn (string $tab): string => $ledgerPageUrl . '?' . http_build_query(['tab' => $tab]);
|
||||
$sourceLabels = ['dingtalk' => '钉钉审批', 'shop' => '店铺提现', 'payable' => '供应商应付', 'store' => '店铺开店', 'workorder' => '聚工单'];
|
||||
@endphp
|
||||
|
||||
|
||||
@ -86,6 +86,17 @@ class FinanceLedgerAccountStatusTest extends FeatureTestCase
|
||||
->assertSee('value="normal" selected', false);
|
||||
}
|
||||
|
||||
public function test_financial_ledger_tab_forms_submit_to_query_tab_routes(): void
|
||||
{
|
||||
$pageUrl = $this->pageUrl();
|
||||
$response = $this->loginAs()->get($pageUrl)->assertOk();
|
||||
|
||||
foreach (['accounts', 'shops', 'flows', 'transactions', 'mapping'] as $tab) {
|
||||
$response->assertSee('action="' . $pageUrl . '?tab=' . $tab . '"', false);
|
||||
$response->assertDontSee('action="' . $pageUrl . '/' . $tab . '"', false);
|
||||
}
|
||||
}
|
||||
|
||||
public function test_account_pagination_lists_page_urls_with_current_filter(): void
|
||||
{
|
||||
$rows = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user