Release 2.0.4 (#3883)
* fix column data truncated * calculate internal rate from user * show internal rate in timesheet listing * Fixed: responsivenss and size of report start page icons * fix: name display in dropdowns (and added tests) * translate reload button * fix invoice date might be in the past * fail safe customer name handling * translate invoice_date and invoice_date help * prevent URLs like start=null * prevent to reload select twice
This commit is contained in:
@@ -81,10 +81,13 @@ final class InvoiceController extends AbstractController
|
||||
$query = $this->getDefaultQuery();
|
||||
|
||||
$form = $this->getToolbarForm($query);
|
||||
if ($this->handleSearch($form, $request)) {
|
||||
if ($this->handleSearch($form, $request, ['invoiceDate'])) {
|
||||
return $this->redirectToRoute('invoice');
|
||||
}
|
||||
|
||||
// this can be deleted in the future, but for now invalid bookmarks exists, which contain an old invoice date
|
||||
$query->setInvoiceDate($this->getDateTimeFactory()->createDateTime());
|
||||
|
||||
$models = [];
|
||||
$total = 0;
|
||||
$searched = false;
|
||||
@@ -116,6 +119,8 @@ final class InvoiceController extends AbstractController
|
||||
->add('template', InvoiceTemplateType::class)
|
||||
->add('invoiceDate', DatePickerType::class, [
|
||||
'required' => true,
|
||||
'label' => 'invoice_date',
|
||||
'help' => 'invoice_date.help'
|
||||
])
|
||||
->createView();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user