Fix 7: change the default FOURNISSEUR #8

Merged
lafrite merged 1 commits from wip_7_Rosier into main 2023-07-07 19:27:43 +00:00
Showing only changes of commit 6b77980e6c - Show all commits

View File

@ -17,6 +17,7 @@ DF_TYPES = {
"annee": str,
"lot": str,
}
DEFAULT_FOURNISSEUR = "ROSIER MODICA MOTTEROZ SA"
def is_it(page_text):
@ -62,8 +63,8 @@ def extract(table, additionnal_fields: dict = {}):
for k, v in additionnal_fields.items():
r[k] = v
if "honoraire" in row[RECAPITULATIF_DES_OPERATIONS]:
r["Fournisseur"] = "IMI GERANCE"
if "honoraire" in row[RECAPITULATIF_DES_OPERATIONS].lower():
r["Fournisseur"] = DEFAULT_FOURNISSEUR
extracted.append(r)