Compare commits
2 Commits
20230124-1
...
20230124-1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d4e5ff6f1b | ||
|
|
894a8bbfbb |
@@ -1 +1 @@
|
|||||||
20230124-1508
|
20230124-1611
|
||||||
4
main.py
4
main.py
@@ -1,4 +1,5 @@
|
|||||||
import csv
|
import csv
|
||||||
|
import re
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import logging
|
import logging
|
||||||
@@ -353,6 +354,9 @@ class ClercAttrib2Biz():
|
|||||||
data.Debtor["street"] = data.Debtor["street"].strip()
|
data.Debtor["street"] = data.Debtor["street"].strip()
|
||||||
if data.data["comments"] is not None:
|
if data.data["comments"] is not None:
|
||||||
data.data["comments"] = data.data["comments"].strip().replace("\n",'')
|
data.data["comments"] = data.data["comments"].strip().replace("\n",'')
|
||||||
|
if data.Debtor["code"] is not None:
|
||||||
|
data.Debtor["code"] = data.Debtor["code"].strip()
|
||||||
|
data.Debtor["code"] = re.sub(r'[^0-9]', '', data.Debtor["code"])
|
||||||
|
|
||||||
if "name" in data.Debtor.keys() and data.Debtor["name"] is not None:
|
if "name" in data.Debtor.keys() and data.Debtor["name"] is not None:
|
||||||
data.Debtor["name"] = data.Debtor["name"].replace("(facturation)","")
|
data.Debtor["name"] = data.Debtor["name"].replace("(facturation)","")
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
VERSION = "20230124-1508"
|
VERSION = "20230124-1611"
|
||||||
Reference in New Issue
Block a user