add price to the receipt
This commit is contained in:
parent
d0f386821d
commit
65b98be530
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'].capitalize()}").grid(column=0)
|
||||
Label(self.panierAffichage, text=f"[{element[0]['id']}] - {element[1]}x {element[0]['nom'].capitalize()} ({__formatPrix(element[0]['prix'])})").grid(column=0)
|
||||
prixTotal += (element[0]["prix"] * element[1]) # ajout du prix
|
||||
compteurElements += element[1]
|
||||
|
||||
|
|
Reference in a new issue