浏览代码

BUG: swap GR for EL

closes #7
Erfan Nariman 3 年之前
父节点
当前提交
3b260fb4ac
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      pyVies/api.py

+ 3 - 3
pyVies/api.py

@@ -92,8 +92,8 @@ class Vies(object):
                 raise ViesValidationError('Invalid VAT number provided')
 
             vat_country_code = vat_country_code.upper()
-            if vat_country_code== 'EL':
-                vat_country_code = 'GR'
+            if vat_country_code == 'GR':
+                vat_country_code = 'EL'
             else:
                 vat_number = vat_number[2:]
 
@@ -158,4 +158,4 @@ def console():
 
 
 if __name__ == '__main__':
-    console()
+    console()