From df65b9e98048409d744101ff7020521f23990a97 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 18 Dec 2022 18:00:24 +1100 Subject: [PATCH] Minor fixes for tax currencies - vendor vs client --- app/Utils/Traits/MakesInvoiceValues.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Utils/Traits/MakesInvoiceValues.php b/app/Utils/Traits/MakesInvoiceValues.php index 48c1b78f9f1b..ef345a88bb73 100644 --- a/app/Utils/Traits/MakesInvoiceValues.php +++ b/app/Utils/Traits/MakesInvoiceValues.php @@ -386,7 +386,7 @@ trait MakesInvoiceValues private function makeLineTaxes() :string { $tax_map = $this->calc()->getTaxMap(); - $entity = $this->client ? $this->client : $this->company; + $entity = $this->client ? $this->client : $this->vendor; $data = ''; @@ -406,7 +406,7 @@ trait MakesInvoiceValues private function makeTotalTaxes() :string { $data = ''; - $entity = $this->client ? $this->client : $this->company; + $entity = $this->client ? $this->client : $this->vendor; if (! $this->calc()->getTotalTaxMap()) { return $data; @@ -439,7 +439,7 @@ trait MakesInvoiceValues private function totalTaxValues() :string { $data = ''; - $entity = $this->client ? $this->client : $this->company; + $entity = $this->client ? $this->client : $this->vendor; if (! $this->calc()->getTotalTaxMap()) { return $data; @@ -468,7 +468,7 @@ trait MakesInvoiceValues private function lineTaxValues() :string { $tax_map = $this->calc()->getTaxMap(); - $entity = $this->client ? $this->client : $this->company; + $entity = $this->client ? $this->client : $this->vendor; $data = '';