Release 2.9.0 (#4526)
* added fix to work around bc break in new phpword version * fix phpoffice deprecations * mark unused option as deprecated * support for DateTimeInterface and DateTimeImmutable where possible * use TRUSTED_PROXIES setting - fixes #4533 * re-enable Kimai test in docker test build script (#4541) * bump dependencies
This commit is contained in:
@@ -48,7 +48,9 @@ final class InvoiceModelCustomerHydrator implements InvoiceModelHydrator
|
||||
'customer.invoice_text' => $customer->getInvoiceText() ?? '',
|
||||
];
|
||||
|
||||
$statistic = $this->customerStatisticService->getBudgetStatisticModel($customer, $model->getQuery()->getEnd());
|
||||
/** @var \DateTime $end */
|
||||
$end = $model->getQuery()->getEnd();
|
||||
$statistic = $this->customerStatisticService->getBudgetStatisticModel($customer, $end);
|
||||
|
||||
$values = array_merge($values, $this->getBudgetValues('customer.', $statistic, $model));
|
||||
|
||||
|
||||
@@ -57,7 +57,12 @@ final class DocxRenderer extends AbstractRenderer implements RendererInterface
|
||||
$i++;
|
||||
}
|
||||
|
||||
$cacheFile = $template->save();
|
||||
$cacheFile = @tempnam(sys_get_temp_dir(), 'kimai-invoice-docx');
|
||||
if (false === $cacheFile) {
|
||||
throw new \Exception('Could not open temporary file');
|
||||
}
|
||||
|
||||
$template->saveAs($cacheFile);
|
||||
|
||||
clearstatcache(true, $cacheFile);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user