[export] set the default date for accompanying period list

This commit is contained in:
Julien Fastré 2023-06-27 11:13:07 +02:00
parent 9f0fdb031a
commit a93051d157
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
2 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1,6 @@
kind: Feature
body: '[export] Set the default date of calculation of the accompanying period''s
list as "today"'
time: 2023-06-27T11:12:22.296330037+02:00
custom:
Issue: ""

View File

@ -20,6 +20,7 @@ use Chill\MainBundle\Export\Helper\ExportAddressHelper;
use Chill\MainBundle\Export\Helper\UserHelper;
use Chill\MainBundle\Export\ListInterface;
use Chill\MainBundle\Form\Type\PickRollingDateType;
use Chill\MainBundle\Service\RollingDate\RollingDate;
use Chill\MainBundle\Service\RollingDate\RollingDateConverterInterface;
use Chill\MainBundle\Templating\TranslatableStringHelperInterface;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
@ -146,7 +147,9 @@ class ListAccompanyingPeriod implements ListInterface, GroupedExportInterface
}
public function getFormDefaultData(): array
{
return [];
return [
'calc_date' => new RollingDate(RollingDate::T_TODAY)
];
}
public function getAllowedFormattersTypes()