From 2ef723e38d5038a49f2e98fada94533c8de8cfe7 Mon Sep 17 00:00:00 2001 From: 92451 <924518135@qq.com> Date: Wed, 11 Nov 2026 20:23:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=9D=A5=E6=BA=90=E5=AE=A1=E8=AE=A1=E7=B1=BB=E5=9E=8B=E9=95=BF?= =?UTF-8?q?=E5=BA=A6=20(#1121)=20Co-authored-by:=2092451=20<924518135@qq.c?= =?UTF-8?q?om>=20Co-committed-by:=2092451=20<924518135@qq.com>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/FinanceLedgerFlowSummaryEditor.php | 2 +- .../Business/FinanceLedgerFlowSummarySpreadsheetTest.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/EcommerceFinance/Services/FinanceLedgerFlowSummaryEditor.php b/modules/EcommerceFinance/Services/FinanceLedgerFlowSummaryEditor.php index d9149d60..379873fa 100644 --- a/modules/EcommerceFinance/Services/FinanceLedgerFlowSummaryEditor.php +++ b/modules/EcommerceFinance/Services/FinanceLedgerFlowSummaryEditor.php @@ -308,7 +308,7 @@ class FinanceLedgerFlowSummaryEditor ]); } $this->audit( - 'flow_summary_source_set', + 'flow_source_set', $accountShort, [ 'before' => $before, diff --git a/tests/Feature/Business/FinanceLedgerFlowSummarySpreadsheetTest.php b/tests/Feature/Business/FinanceLedgerFlowSummarySpreadsheetTest.php index ea89d536..a74f16f2 100644 --- a/tests/Feature/Business/FinanceLedgerFlowSummarySpreadsheetTest.php +++ b/tests/Feature/Business/FinanceLedgerFlowSummarySpreadsheetTest.php @@ -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)