feat: add LegalAid entity — centralized legal aid data management
Replace scattered Case fields with a dedicated LegalAid entity that holds all legal aid data (aid type, urgency, client contact, proceeding details, legal analysis, recommendation, etc.). DirectAccessReport now pulls from LegalAid for DOCX generation with automatic checkbox mapping. - Add LegalAid entity with controller, layouts, i18n (he/en/fa) - Remove cAidType, cUrgencyLevel, cAppointmentDate, cFilingDeadline, cLegalAidType from Case (migrated to LegalAid) - Add legalAidType field to LegalAid (DirectAccess/Regular/Duty) - Update DirectAccessReportService to use LegalAid entity - Add update_legal_aid and get_legal_aid SmartAssistant tools - Fix AfterInstall template entityType to LegalAid Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -153,7 +153,7 @@ class AfterInstall
|
||||
$template = $entityManager->getNewEntity('DocumentTemplate');
|
||||
$template->set([
|
||||
'name' => 'דוח גישה ישירה',
|
||||
'entityType' => 'Case',
|
||||
'entityType' => 'LegalAid',
|
||||
'fileId' => $attachment->getId(),
|
||||
]);
|
||||
$entityManager->saveEntity($template);
|
||||
|
||||
Reference in New Issue
Block a user