feat: enhance agent settlement features and improve data access controls

- Added new section in AGENTS.md detailing learned workspace facts for better understanding of settlement processes.
- Updated AgentNodeDestroyController to remove unnecessary checks for admin users.
- Enhanced AgentSettlement controllers to assert permissions for finance adjustments and bill operations.
- Improved query scopes in AgentSettlement services to ensure proper data access based on admin roles.
- Refactored methods in SettlementPartyEnrichment for better bill row enrichment and data handling.
- Introduced new methods in AdminAgentSettlementScope for managing agent node visibility and finance adjustments.
This commit is contained in:
2026-06-12 15:59:05 +08:00
parent e14b7b4569
commit 980f3c9593
47 changed files with 2403 additions and 187 deletions

View File

@@ -27,6 +27,7 @@ return [
'parent_overdue' => 'The parent agent has overdue bills. This operation is not allowed.',
'period_already_open' => 'A period with this date range is already open. Close it instead of opening again.',
'period_site_has_open' => 'This site already has an open period. Close it before opening a new one.',
'period_overlaps_existing' => 'This period overlaps an existing one. Adjust the start and end dates.',
'period_not_found' => 'Settlement period not found or not accessible.',
'period_already_closed' => 'This period is already closed.',
'share_snapshot_missing' => 'Some ledger rows are missing share snapshots. Complete draw settlement first.',

View File

@@ -31,6 +31,7 @@ return [
'parent_overdue' => '上级代理存在逾期未结账单,禁止此操作。',
'period_already_open' => '该时间范围的账期已在进行中,请直接关账,勿重复开期。',
'period_site_has_open' => '本站已有进行中账期,请先关账后再开新账期。',
'period_overlaps_existing' => '账期时间与已有账期重叠,请调整起止日期。',
'period_not_found' => '账期不存在或无权访问。',
'period_already_closed' => '该账期已关账,请勿重复操作。',
'share_snapshot_missing' => '账期内存在缺少占成快照的流水,无法关账。请先完成开奖结算或联系技术支持。',