Compare vat numbers only
This commit is contained in:
parent
8f2bd568db
commit
6674e70ded
1 changed files with 1 additions and 3 deletions
|
@ -443,9 +443,7 @@ class StripeUtils(object):
|
||||||
limit=100,
|
limit=100,
|
||||||
)
|
)
|
||||||
for tax_id_obj in tax_ids_list.data:
|
for tax_id_obj in tax_ids_list.data:
|
||||||
if (self.compare_vat_numbers(tax_id_obj.value, vat_number) and
|
if self.compare_vat_numbers(tax_id_obj.value, vat_number):
|
||||||
tax_id_obj.country.lower().strip() ==
|
|
||||||
country.lower().strip()):
|
|
||||||
logger.debug("tax id obj exists already")
|
logger.debug("tax id obj exists already")
|
||||||
return tax_id_obj
|
return tax_id_obj
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue