Merge pull request #8087 from turbo124/v5-develop

Minor fixes for tax currencies - vendor vs client
This commit is contained in:
David Bomba 2022-12-18 18:00:39 +11:00 committed by GitHub
commit 2244da8947
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = '';