feat : ajout d'un écran pour le récap congés et RTT
Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
Some checks failed
Auto Tag Develop / tag (push) Has been cancelled
This commit is contained in:
35
src/ApiResource/EmployeeLeaveRecap.php
Normal file
35
src/ApiResource/EmployeeLeaveRecap.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\ApiResource;
|
||||
|
||||
use ApiPlatform\Metadata\ApiResource;
|
||||
use ApiPlatform\Metadata\GetCollection;
|
||||
use App\State\EmployeeLeaveRecapProvider;
|
||||
|
||||
#[ApiResource(
|
||||
operations: [
|
||||
new GetCollection(
|
||||
uriTemplate: '/leave-recap',
|
||||
paginationEnabled: false,
|
||||
security: "is_granted('ROLE_USER')",
|
||||
provider: EmployeeLeaveRecapProvider::class,
|
||||
),
|
||||
],
|
||||
)]
|
||||
final class EmployeeLeaveRecap
|
||||
{
|
||||
public int $employeeId = 0;
|
||||
public string $lastName = '';
|
||||
public string $firstName = '';
|
||||
public ?int $siteId = null;
|
||||
public ?string $siteName = null;
|
||||
public ?string $siteColor = null;
|
||||
public ?string $contractName = null;
|
||||
public float $cpN1Remaining = 0.0;
|
||||
public string $cpN = '-';
|
||||
public string $acquiredSaturdays = '-';
|
||||
public string $rtt = '-';
|
||||
public string $cutoffDate = '';
|
||||
}
|
||||
Reference in New Issue
Block a user