python-stdnum commit: r117 - python-stdnum/stdnum/be
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
python-stdnum commit: r117 - python-stdnum/stdnum/be
- From: Commits of the python-stdnum project <python-stdnum-commits [at] lists.arthurdejong.org>
- To: python-stdnum-commits [at] lists.arthurdejong.org
- Reply-to: python-stdnum-users [at] lists.arthurdejong.org
- Subject: python-stdnum commit: r117 - python-stdnum/stdnum/be
- Date: Sat, 11 Feb 2012 21:11:45 +0100 (CET)
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/
- python-stdnum commit: r117 - python-stdnum/stdnum/be,
Commits of the python-stdnum project