Adding 2 category in the Cashier GUI for :
- Stock - Sales receipt
This commit is contained in:
parent
1763955a88
commit
334d2eb7f7
1 changed files with 14 additions and 3 deletions
17
main.py
17
main.py
|
@ -180,12 +180,12 @@ class GesMag:
|
|||
|
||||
Button(self.f, text="Quitter", font=self.font, command=quit).grid(column=0, row=6, columnspan=4, pady=20)
|
||||
|
||||
self._interfaceManager(1) # DEBUG: affiche directement l'interface du Manager
|
||||
self._interfaceCaissier(1) # DEBUG: affiche directement l'interface du Manager
|
||||
|
||||
def _interfaceCaissier(self, id: int):
|
||||
"""Affiche l'interface du caissier."""
|
||||
caissier = Utilisateurs().recuperationUtilisateur(id=id)[0]
|
||||
self.parent.title(f"Caissier {caissier[3]} {caissier[4]}")
|
||||
caissier = Utilisateurs().recuperationUtilisateur(id=id)
|
||||
self.parent.title(f"Caissier {caissier['nom']} {caissier['prenom']}")
|
||||
self.dimensionsFenetre(self.parent, 1280, 720)
|
||||
|
||||
# Suppresssion de la dernière Frame
|
||||
|
@ -194,6 +194,17 @@ class GesMag:
|
|||
self.f = Frame(self.parent)
|
||||
self.f.grid()
|
||||
|
||||
Label(self.f, text="Interface Caissier", font=(self.font[0], 20)).grid(column=0, row=0) # titre de l'interface
|
||||
|
||||
stock = LabelFrame(self.f, text="Stock") # partie affichage du stock
|
||||
stock.grid(column=0, row=1)
|
||||
Label(stock, text="TODO").grid()
|
||||
|
||||
ticket = LabelFrame(self.f, text="Ticket de caisse") # partie affichage du ticket de caisse
|
||||
ticket.grid(column=1, row=1)
|
||||
Label(ticket, text="TODO").grid()
|
||||
|
||||
|
||||
def _interfaceManager(self, id: int):
|
||||
"""Affiche l'interface du manager."""
|
||||
manager = Utilisateurs().recuperationUtilisateur(id=id)
|
||||
|
|
Reference in a new issue