allow to hide tax rows in invoice templates if vat rate is zero (#3484)
This commit is contained in:
@@ -77,6 +77,10 @@ final class InvoiceModel
|
||||
* @var string
|
||||
*/
|
||||
private $invoiceNumber;
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
private $hideZeroTax = false;
|
||||
|
||||
/**
|
||||
* @internal use InvoiceModelFactory
|
||||
@@ -316,4 +320,14 @@ final class InvoiceModel
|
||||
|
||||
return $values;
|
||||
}
|
||||
|
||||
public function isHideZeroTax(): bool
|
||||
{
|
||||
return $this->hideZeroTax;
|
||||
}
|
||||
|
||||
public function setHideZeroTax(bool $hideZeroTax): void
|
||||
{
|
||||
$this->hideZeroTax = $hideZeroTax;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user