1
0
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:
David Bomba 2023-05-17 20:55:27 +10:00
parent 183811ef95
commit 0adb908df9
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -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']);
}
}