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)