lists.arthurdejong.org
RSS feed

python-stdnum commit: r117 - python-stdnum/stdnum/be

[Date Prev][Date Next] [Thread Prev][Thread Next]

python-stdnum commit: r117 - python-stdnum/stdnum/be



Author: arthur
Date: Sat Feb 11 21:11:44 2012
New Revision: 117
URL: http://arthurdejong.org/viewvc/python-stdnum?revision=117&view=revision

Log:
clean up numbers starting with (0)

Modified:
   python-stdnum/stdnum/be/vat.py

Modified: python-stdnum/stdnum/be/vat.py
==============================================================================
--- python-stdnum/stdnum/be/vat.py      Sat Feb 11 21:09:06 2012        (r116)
+++ python-stdnum/stdnum/be/vat.py      Sat Feb 11 21:11:44 2012        (r117)
@@ -36,6 +36,8 @@
     number = clean(number, ' -./').upper().strip()
     if number.startswith('BE'):
         number = number[2:]
+    if number.startswith('(0)'):
+        number = '0' + number[3:]
     if len(number) == 9:
         number = '0' + number  # old format had 9 digits
     return number
-- 
To unsubscribe send an email to
python-stdnum-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/python-stdnum-commits/