From 99364fab5542459c82a2067d0ffdd1351d679b62 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 17 Apr 2023 20:20:01 +1000 Subject: [PATCH] Minor fixes for calculate taxes in preview --- app/Helpers/Invoice/InvoiceItemSum.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Helpers/Invoice/InvoiceItemSum.php b/app/Helpers/Invoice/InvoiceItemSum.php index 7772bebb3726..f11255a75ac5 100644 --- a/app/Helpers/Invoice/InvoiceItemSum.php +++ b/app/Helpers/Invoice/InvoiceItemSum.php @@ -136,7 +136,7 @@ class InvoiceItemSum private function shouldCalculateTax(): self { - if (!$this->invoice->company->calculate_taxes) { + if (!$this->invoice->company?->calculate_taxes) { $this->calc_tax = false; return $this; }