Merge pull request #8088 from turbo124/preview

Preview
This commit is contained in:
David Bomba 2022-12-18 18:02:09 +11:00 committed by GitHub
commit 93a3827507
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 = '';