This commit is contained in:
Daniel Haus 2026-01-23 09:41:20 +03:00
commit 95c854f215
9 changed files with 287 additions and 0 deletions

18
data.py Normal file
View file

@ -0,0 +1,18 @@
USERS = {
'petlover': {'password': '1111', 'role': 'Покупатель'},
'cash1': {'password': '2222', 'role': 'Кассир'},
}
PRODUCTS = [
{'name': 'Корм кошек', 'animal': 'Кот', 'price': 500},
{'name': 'Игрушка', 'animal': 'Собака', 'price': 300},
]
ORDERS = [
{'id': '1', 'customer': 'Анна Петрова',
'sum': '2500 р.', 'status': 'Новый'},
{'id': '2', 'customer': 'Иван Иванов',
'sum': '1800 р.', 'status': 'Оплачен'},
]
STATUS_OPTIONS = ['Новый', 'Оплачен', 'Отправлен', 'Отменён']