fix: 修正数据来源审计类型长度 (#1121)

Co-authored-by: 92451 <924518135@qq.com>
Co-committed-by: 92451 <924518135@qq.com>
This commit is contained in:
92451 2026-11-11 20:23:25 +08:00 committed by yutu
parent b38d3e5b30
commit 2ef723e38d
2 changed files with 6 additions and 1 deletions

View File

@ -308,7 +308,7 @@ class FinanceLedgerFlowSummaryEditor
]);
}
$this->audit(
'flow_summary_source_set',
'flow_source_set',
$accountShort,
[
'before' => $before,

View File

@ -172,6 +172,11 @@ class FinanceLedgerFlowSummarySpreadsheetTest extends FeatureTestCase
'account_short' => $this->accountShort,
'data_source' => '银行流水',
], 'business_mirror');
$this->assertDatabaseHas('fin_ledger_edit_events', [
'entity_type' => 'flow_source_set',
'entity_key' => 'flow_summary|' . $this->accountShort,
'user_name' => 'Test User',
], 'business_mirror');
$accountId = (int) DB::connection('business_mirror')->table('fin_accounts')
->where('account_short', $this->accountShort)