- Company details get an optional "Valikon nimi", shown at the left of the main menu; it falls back to the application name when empty. - A billing material gets its running number (billing_exports.number) only when it is created, so discarded drafts leave no gaps. Drafts have no number; existing created materials are numbered by the migration, and the CSV file name uses the number. - TaskAssigneeMigrationTest rolls back from its own migration onward instead of assuming it is the last one. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
28 lines
687 B
PHP
28 lines
687 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Billing\Application\DTOs;
|
|
|
|
use App\Modules\Billing\Domain\Enums\ExportStatus;
|
|
use DateTimeImmutable;
|
|
|
|
/**
|
|
* A billing material on the list. The sum without VAT is known once it is created.
|
|
*/
|
|
final readonly class ExportSummary
|
|
{
|
|
public function __construct(
|
|
public int $id,
|
|
public ?int $number,
|
|
public ExportStatus $status,
|
|
public DateTimeImmutable $createdAt,
|
|
public string $createdByName,
|
|
public ?DateTimeImmutable $finalizedAt,
|
|
public ?string $finalizedByName,
|
|
public int $invoiceCount,
|
|
public int $jobCount,
|
|
public ?int $netCents,
|
|
) {}
|
|
}
|