Skip to content

Commit

Permalink
feat: UI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeriolino committed Oct 25, 2024
1 parent d192037 commit 6dfb083
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 115 deletions.
1 change: 0 additions & 1 deletion src/Controller/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ public function customerForm(

#[Route("/set_local", name: "setlocal", methods: ["POST"])]
public function setLocal(
Request $request,
LocalRepositoryInterface $localRepository,
UsuarioServiceInterface $usuarioService,
EventDispatcherInterface $dispatcher,
Expand Down
4 changes: 3 additions & 1 deletion src/Dto/SetLocalDto.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
final readonly class SetLocalDto
{
public function __construct(
#[Assert\NotNull]
#[Assert\Range(min: 1)]
public ?int $local,
#[Assert\Range(min: 1)]
public int $local,
public ?int $numeroLocal = null,
public ?string $tipoAtendimento = null,
) {
Expand Down
Loading

0 comments on commit 6dfb083

Please sign in to comment.