Release 2.0.25 (#4066)

* added support for hourly rate column in detail table
* allow to register icon in extension
* allow to show QR code secret
* new translations
* bump theme and packages
* fix validation for invoice-document-filenames with uppercase character
* max upload size 1MB
* fix last month in daterange-picker in certain situations, more years in quick-select
* remove unused package-versions-deprecated
* link preferences from contract warning message
* added page_setup page layout
* prevent DROP TABLE in addSQL() and replace drop table with schema call
* added azuyalabs/yasumi
This commit is contained in:
Kevin Papst
2023-06-06 23:05:20 +02:00
committed by GitHub
parent 2ba9cff281
commit 0663995d06
34 changed files with 629 additions and 467 deletions

View File

@@ -18,6 +18,7 @@ use App\Event\CustomerMetaDefinitionEvent;
use App\Event\CustomerUpdatePostEvent;
use App\Event\CustomerUpdatePreEvent;
use App\Repository\CustomerRepository;
use App\Repository\Query\CustomerQuery;
use App\Utils\NumberGenerator;
use App\Validator\ValidationFailedException;
use InvalidArgumentException;
@@ -107,6 +108,19 @@ final class CustomerService
return $this->repository->findOneBy(['number' => $number]);
}
/**
* @return iterable<Customer>
*/
public function findCustomer(CustomerQuery $query): iterable
{
return $this->repository->getCustomersForQuery($query);
}
public function countCustomer(bool $visible = true): int
{
return $this->repository->countCustomer($visible);
}
public function calculateNextCustomerNumber(): string
{
$format = $this->configuration->find('customer.number_format');