Compare vat numbers only

This commit is contained in:
PCoder 2019-12-31 22:54:12 +05:30
parent 8f2bd568db
commit 6674e70ded

View file

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