Fixes for statement dates

This commit is contained in:
David Bomba 2025-03-29 09:43:03 +11:00
parent 1e416a3270
commit b363ed4098
1 changed files with 2 additions and 1 deletions

View File

@ -1641,7 +1641,8 @@ class PdfBuilder
*/
public function statementDetails(): array
{
$s_date = $this->translateDate(now(), $this->service->config->date_format, $this->service->config->locale);
$s_date = $this->translateDate($this->service->options['start_date'], $this->service->config->date_format, $this->service->config->locale) . " - " . $this->translateDate($this->service->options['end_date'], $this->service->config->date_format, $this->service->config->locale);
return [
['element' => 'tr', 'properties' => ['data-ref' => 'statement-label'], 'elements' => [