nettoyage du code débiteur
This commit is contained in:
@@ -1 +1 @@
|
|||||||
20230124-1547
|
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
|
||||||
@@ -354,7 +355,8 @@ class ClercAttrib2Biz():
|
|||||||
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:
|
if data.Debtor["code"] is not None:
|
||||||
data.Debtor["code"] = data.Debtor["code"].strip().replace("'","").replace("*","")
|
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-1547"
|
VERSION = "20230124-1611"
|
Reference in New Issue
Block a user