capitalize item's name in the receipt
This commit is contained in:
parent
7242fc9ba4
commit
dee92816c6
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -389,7 +389,7 @@ class GesMag:
|
|||
prixTotal = 0
|
||||
compteurElements = 0
|
||||
for element in self.panier:
|
||||
Label(self.panierAffichage, text=f"[{element[0]['id']}] - {element[1]}x {element[0]['nom']}").grid(column=0)
|
||||
Label(self.panierAffichage, text=f"[{element[0]['id']}] - {element[1]}x {element[0]['nom'].capitalize()}").grid(column=0)
|
||||
prixTotal += (element[0]["prix"] * element[1]) # ajout du prix
|
||||
compteurElements += element[1]
|
||||
|
||||
|
|
Reference in a new issue