invoice items so far getting better

This commit is contained in:
2024-11-10 15:32:54 +05:00
parent c1af5e1b39
commit 607a916cff
7 changed files with 115 additions and 10 deletions

View File

@@ -9,12 +9,15 @@ class InvoiceItem
public int|string $unit,
public int $quantity,
public int|float $unit_price,
public null|int|float $vat,
public null|int|float $excludingVat,
public null|int|float $vat_percentage,
public null|int|float $vat_tmt,
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';
}
}