The expenses employees paid themselves in a period, by person with kilometres and amounts, printable and as CSV for payroll. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
28 lines
701 B
PHP
28 lines
701 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Expenses\Application\DTOs;
|
|
|
|
use App\Modules\Expenses\Domain\Enums\ExpenseCategory;
|
|
|
|
/**
|
|
* An expense an employee paid: on which job and day, what it was, the
|
|
* kilometres in tenths for mileage and the cost in cents (VAT 0).
|
|
*/
|
|
final readonly class ReimbursableExpense
|
|
{
|
|
public function __construct(
|
|
public int $id,
|
|
public int $userId,
|
|
public int $jobId,
|
|
public ExpenseCategory $category,
|
|
public string $spentOn,
|
|
public ?string $description,
|
|
public ?string $destination,
|
|
public ?string $purpose,
|
|
public ?int $kilometerTenths,
|
|
public int $costCents,
|
|
) {}
|
|
}
|