mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 16:31:33 +02: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;
|
||||
|
||||
//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) {
|
||||
$tax_data->originDestination = "D";
|
||||
|
Loading…
Reference in New Issue
Block a user