24 lines
663 B
PHP
24 lines
663 B
PHP
<?php
|
|
|
|
namespace App\Modules\Invoice\Data;
|
|
|
|
class InvoiceItem
|
|
{
|
|
public function __construct(
|
|
public string $name,
|
|
public int|string $unit,
|
|
public int $quantity,
|
|
public int|float $unit_price,
|
|
public null|int|float|string $vat,
|
|
public null|int|float|string $vat_excluded,
|
|
public null|int|float|string $vat_percentage,
|
|
public null|int|float|string $vat_tmt,
|
|
public int|float|string $total,
|
|
) {
|
|
$this->vat = $vat ?: 'x';
|
|
$this->vat_excluded = $vat_excluded ?: 'x';
|
|
$this->vat_percentage = $vat_percentage ?: 'x';
|
|
$this->vat_tmt = $vat_tmt ?: 'x';
|
|
}
|
|
}
|