mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Clean up for taxes
This commit is contained in:
parent
183811ef95
commit
0adb908df9
@ -194,7 +194,7 @@ class BaseRule implements RuleInterface
|
||||
}
|
||||
|
||||
/** If we are in a Origin based state, force the company tax here */
|
||||
if($company->origin_tax_data->originDestination == 'O' && ($company->tax_data->seller_subregion == $this->client_subregion)) {
|
||||
if($company->origin_tax_data?->originDestination == 'O' && ($company->tax_data?->seller_subregion == $this->client_subregion)) {
|
||||
|
||||
$tax_data = $company->origin_tax_data;
|
||||
|
||||
|
@ -45,7 +45,7 @@ class ZipTax implements TaxProviderInterface
|
||||
|
||||
}
|
||||
|
||||
$response->throw();
|
||||
// $response->throw();
|
||||
|
||||
}
|
||||
|
||||
@ -75,7 +75,7 @@ class ZipTax implements TaxProviderInterface
|
||||
if(isset($response['results']['0']))
|
||||
return $response['results']['0'];
|
||||
|
||||
throw new \Exception("Error resolving tax (code) = " . $response['rCode']);
|
||||
|
||||
return null;
|
||||
// throw new \Exception("Error resolving tax (code) = " . $response['rCode']);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user