mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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 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;
|
$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']))
|
if(isset($response['results']['0']))
|
||||||
return $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…
x
Reference in New Issue
Block a user