add bills and vendors

This commit is contained in:
Simon Vieille 2023-04-08 17:47:43 +02:00
commit 167d1fd5da
Signed by: deblan
GPG key ID: 579388D585F70417
42 changed files with 51694 additions and 1 deletions

View file

@ -0,0 +1,25 @@
<?php
namespace App\Repository;
use App\Core\Repository\RepositoryQuery;
use App\Repository\BillRepository as Repository;
use Knp\Component\Pager\PaginatorInterface;
class BillRepositoryQuery extends RepositoryQuery
{
public function __construct(Repository $repository, PaginatorInterface $paginator)
{
parent::__construct($repository, 'b', $paginator);
}
protected function filterHandler(string $name, $value)
{
if ('vendor' === $name && null !== $value) {
$this
->where('.vendor = :vendor')
->setParameter('vendor', $value)
;
}
}
}