mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Fixes for client tax_data
This commit is contained in:
parent
2e091abdc0
commit
80e20c0f1e
@ -160,7 +160,7 @@ class BaseRule implements RuleInterface
|
|||||||
return $this;
|
return $this;
|
||||||
|
|
||||||
//determine if we are taxing locally or if we are taxing globally
|
//determine if we are taxing locally or if we are taxing globally
|
||||||
$tax_data = $this->invoice->client->tax_data ?? new Response([]);
|
$tax_data = is_object($this->invoice->client->tax_data) ? $this->invoice->client->tax_data : new Response([]);
|
||||||
|
|
||||||
if(strlen($this->invoice->tax_data?->originDestination) == 0 && $this->client->company->tax_data->seller_subregion != $this->client_subregion) {
|
if(strlen($this->invoice->tax_data?->originDestination) == 0 && $this->client->company->tax_data->seller_subregion != $this->client_subregion) {
|
||||||
$tax_data->originDestination = "D";
|
$tax_data->originDestination = "D";
|
||||||
|
Loading…
Reference in New Issue
Block a user