Files
lotteryLaravel/lang/en/validation_business.php
kang 980f3c9593 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.
2026-06-12 15:59:05 +08:00

35 lines
2.5 KiB
PHP

<?php
return [
'unique' => 'This value already exists. Please choose another.',
'required' => ':attribute is required.',
'system_role' => 'System roles cannot be deleted.',
'agent_mismatch' => 'This user does not belong to the current agent node.',
'invalid_for_agent' => 'One or more roles are not valid for this agent.',
'not_manageable' => 'You cannot manage this child agent.',
'invalid_menu_action' => 'Invalid or unknown permission item.',
'exceeds_actor' => 'These permissions exceed what you may grant: :detail',
'exceeds_parent_ceiling' => 'These permissions exceed the parent delegation ceiling: :detail',
'exceeds_delegation_ceiling' => 'These permissions exceed this node\'s delegation ceiling: :detail',
'permission_exceeds_actor' => 'These permissions exceed what you may grant: :detail',
'permission_catalog_incomplete' => 'Permission catalog is incomplete (missing: :detail). Run migrate and admin-auth-sync.',
'exceeds_parent' => 'Share rate cannot exceed the parent agent.',
'exceeds_available' => 'Credit limit exceeds the parent\'s available allocation.',
'exceeds_limit' => 'Default player rebate cannot exceed the rebate ceiling.',
'invalid_range' => 'Share rate must be between 0 and 100.',
'below_allocated' => 'Credit limit cannot be lower than credit already allocated to sub-agents.',
'parent_cannot_delegate' => 'The parent has not enabled this capability.',
'cannot_create_child_agent' => 'You are not allowed to create sub-agents.',
'cannot_create_player' => 'You are not allowed to create players.',
'primary_account_missing' => 'This agent has no bound login account; username cannot be updated.',
'agent_overdue' => 'This agent has overdue bills. This operation is not allowed.',
'agent_line_severe_overdue' => 'This agent line has severe overdue (over 7 days). Betting is frozen.',
'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.',
];