The new billing::job-months page lists the months that created billing materials have billed for a monthly fee job, with links to the materials and the total, and the months still to bill up to the current month, counted the same way as a new material counts them. The job page links to it next to the payment basis for those who manage billing. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
25 lines
489 B
PHP
25 lines
489 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Modules\Billing\Application\DTOs;
|
|
|
|
use DateTimeImmutable;
|
|
|
|
/**
|
|
* One month of a monthly fee job billed on a created billing material.
|
|
*/
|
|
final readonly class BilledMonth
|
|
{
|
|
/**
|
|
* @param string $month Y-m.
|
|
*/
|
|
public function __construct(
|
|
public string $month,
|
|
public int $exportId,
|
|
public int $exportNumber,
|
|
public ?DateTimeImmutable $finalizedAt,
|
|
public int $netCents,
|
|
) {}
|
|
}
|