|
|
@@ -43,8 +43,8 @@ class Invoice {
|
|
|
$this->taxRate = $tax_rate;
|
|
|
}
|
|
|
|
|
|
- public function getTax() {
|
|
|
- return round($this->getTotal() * $this->taxRate);
|
|
|
+ public function getTax(): float {
|
|
|
+ return round($this->getTotal() * $this->taxRate, 2);
|
|
|
}
|
|
|
|
|
|
public function getTotalIncTax() {
|