invoices: choose language and duration format (#1438)
This commit is contained in:
@@ -134,6 +134,25 @@ class InvoiceTemplate
|
||||
*/
|
||||
private $paymentDetails;
|
||||
|
||||
/**
|
||||
* Used when rendering HTML templates.
|
||||
*
|
||||
* @var bool
|
||||
*
|
||||
* @ORM\Column(name="decimal_duration", type="boolean", nullable=false, options={"default": false})
|
||||
* @Assert\NotNull()
|
||||
*/
|
||||
private $decimalDuration = false;
|
||||
|
||||
/**
|
||||
* Used when rendering HTML templates.
|
||||
*
|
||||
* @var string
|
||||
*
|
||||
* @ORM\Column(name="language", type="string", length=6, nullable=true)
|
||||
*/
|
||||
private $language;
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
return $this->id;
|
||||
@@ -295,6 +314,30 @@ class InvoiceTemplate
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function isDecimalDuration(): bool
|
||||
{
|
||||
return $this->decimalDuration;
|
||||
}
|
||||
|
||||
public function setDecimalDuration(bool $decimalDuration): InvoiceTemplate
|
||||
{
|
||||
$this->decimalDuration = $decimalDuration;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getLanguage(): ?string
|
||||
{
|
||||
return $this->language;
|
||||
}
|
||||
|
||||
public function setLanguage(?string $language): InvoiceTemplate
|
||||
{
|
||||
$this->language = $language;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user