Spaces:
Sleeping
Sleeping
ITSAIDI
commited on
Commit
•
90e8168
1
Parent(s):
6c469d3
asd
Browse files- utilitis.py +20 -1
utilitis.py
CHANGED
@@ -188,26 +188,45 @@ def Update(Results):
|
|
188 |
if "Fournisseur" in Results.keys():
|
189 |
text_fourni = st.sidebar.text_input("Fournisseur", value=Results["Fournisseur"])
|
190 |
New_results["Fournisseur"] = text_fourni
|
|
|
|
|
|
|
191 |
|
192 |
if "Date Facture" in Results.keys():
|
193 |
text_InvDate = st.sidebar.text_input("Date Facture", value=Results["Date Facture"])
|
194 |
New_results["Date Facture"] = text_InvDate
|
|
|
|
|
|
|
195 |
|
196 |
if "Numéro de facture" in Results.keys():
|
197 |
text_InvNum = st.sidebar.text_input("Numéro de facture", value=Results["Numéro de facture"])
|
198 |
New_results["Numéro de facture"] = text_InvNum
|
|
|
|
|
|
|
199 |
|
200 |
if "Total HT" in Results.keys():
|
201 |
text_TT = st.sidebar.text_input("Total HT", value=Results["Total HT"])
|
202 |
New_results["Total HT"] = text_TT
|
|
|
|
|
|
|
203 |
|
204 |
if "TVA" in Results.keys():
|
205 |
text_TVA = st.sidebar.text_input("TVA", value=Results["TVA"])
|
206 |
New_results["TVA"] = text_TVA
|
|
|
|
|
|
|
207 |
|
208 |
if "Total TTC" in Results.keys():
|
209 |
-
text_TTC = st.sidebar.text_input("TTC", value=Results["Total TTC"])
|
|
|
|
|
|
|
210 |
New_results["Total TTC"] = text_TTC
|
|
|
211 |
return New_results
|
212 |
|
213 |
#############################################################################
|
|
|
188 |
if "Fournisseur" in Results.keys():
|
189 |
text_fourni = st.sidebar.text_input("Fournisseur", value=Results["Fournisseur"])
|
190 |
New_results["Fournisseur"] = text_fourni
|
191 |
+
else :
|
192 |
+
text_fourni = st.sidebar.text_input("Fournisseur", value= "")
|
193 |
+
New_results["Fournisseur"] = text_fourni
|
194 |
|
195 |
if "Date Facture" in Results.keys():
|
196 |
text_InvDate = st.sidebar.text_input("Date Facture", value=Results["Date Facture"])
|
197 |
New_results["Date Facture"] = text_InvDate
|
198 |
+
else :
|
199 |
+
text_InvDate = st.sidebar.text_input("Date Facture", value= "")
|
200 |
+
New_results["Date Facture"] = text_InvDate
|
201 |
|
202 |
if "Numéro de facture" in Results.keys():
|
203 |
text_InvNum = st.sidebar.text_input("Numéro de facture", value=Results["Numéro de facture"])
|
204 |
New_results["Numéro de facture"] = text_InvNum
|
205 |
+
else :
|
206 |
+
text_InvNum = st.sidebar.text_input("Numéro de facture", value= "")
|
207 |
+
New_results["Numéro de facture"] = text_InvNum
|
208 |
|
209 |
if "Total HT" in Results.keys():
|
210 |
text_TT = st.sidebar.text_input("Total HT", value=Results["Total HT"])
|
211 |
New_results["Total HT"] = text_TT
|
212 |
+
else :
|
213 |
+
text_TT = st.sidebar.text_input("Total HT", value= "")
|
214 |
+
New_results["Total HT"] = text_TT
|
215 |
|
216 |
if "TVA" in Results.keys():
|
217 |
text_TVA = st.sidebar.text_input("TVA", value=Results["TVA"])
|
218 |
New_results["TVA"] = text_TVA
|
219 |
+
else :
|
220 |
+
text_TVA = st.sidebar.text_input("TVA", value= "")
|
221 |
+
New_results["TVA"] = text_TVA
|
222 |
|
223 |
if "Total TTC" in Results.keys():
|
224 |
+
text_TTC = st.sidebar.text_input("Total TTC", value=Results["Total TTC"])
|
225 |
+
New_results["Total TTC"] = text_TTC
|
226 |
+
else :
|
227 |
+
text_TTC = st.sidebar.text_input("Total TTC", value= "")
|
228 |
New_results["Total TTC"] = text_TTC
|
229 |
+
|
230 |
return New_results
|
231 |
|
232 |
#############################################################################
|