From 6a364705f22326388daa89a40494b9f64566e859 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Tue, 20 May 2025 09:55:58 +0200 Subject: [PATCH] Git add desactivation date for social issue csv export --- .changes/unreleased/Feature-20250520-095628.yaml | 6 ++++++ .../Service/SocialWork/SocialIssueCSVExportService.php | 2 ++ 2 files changed, 8 insertions(+) create mode 100644 .changes/unreleased/Feature-20250520-095628.yaml diff --git a/.changes/unreleased/Feature-20250520-095628.yaml b/.changes/unreleased/Feature-20250520-095628.yaml new file mode 100644 index 000000000..4b1fba30c --- /dev/null +++ b/.changes/unreleased/Feature-20250520-095628.yaml @@ -0,0 +1,6 @@ +kind: Feature +body: Add desactivation date for social action and issue csv export +time: 2025-05-20T09:56:28.108941934+02:00 +custom: + Issue: "" + SchemaChange: No schema change diff --git a/src/Bundle/ChillPersonBundle/Service/SocialWork/SocialIssueCSVExportService.php b/src/Bundle/ChillPersonBundle/Service/SocialWork/SocialIssueCSVExportService.php index be4cc0706..ce403d192 100644 --- a/src/Bundle/ChillPersonBundle/Service/SocialWork/SocialIssueCSVExportService.php +++ b/src/Bundle/ChillPersonBundle/Service/SocialWork/SocialIssueCSVExportService.php @@ -44,6 +44,7 @@ readonly class SocialIssueCSVExportService 'Id', 'Label', 'Social issue', + 'export.social_action_list.desactivation_date', 'socialIssue.isParent?', 'socialIssue.Parent id', ] @@ -66,6 +67,7 @@ readonly class SocialIssueCSVExportService 'id' => $issue->getId(), 'label' => $this->stringHelper->localize($issue->getTitle()), 'title' => $this->socialIssueRender->renderString($issue, []), + 'export.social_action_list.desactivation_date' => $issue->getDesactivationDate()?->format('Y-m-d'), 'isParent' => $issue->hasChildren() ? 'X' : '', 'parent_id' => null !== $issue->getParent() ? $issue->getParent()->getId() : '', ];