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]>
30 lines
715 B
PHP
30 lines
715 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Expenses\Application\Contracts;
|
|
|
|
use App\Modules\Expenses\Application\DTOs\ReimbursableExpense;
|
|
|
|
/**
|
|
* Expenses for management's reports, by the day spent (Y-m-d, both ends
|
|
* included).
|
|
*/
|
|
interface ExpenseReportQueries
|
|
{
|
|
/**
|
|
* Expenses the employees paid themselves, to be reimbursed outside
|
|
* this system, by user and day.
|
|
*
|
|
* @return list<ReimbursableExpense>
|
|
*/
|
|
public function employeePaidBetween(string $from, string $to): array;
|
|
|
|
/**
|
|
* Purchase costs (VAT 0) of every expense, by job id.
|
|
*
|
|
* @return array<int, int>
|
|
*/
|
|
public function costsByJobBetween(string $from, string $to): array;
|
|
}
|