invoice items so far getting better
This commit is contained in:
@@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user