Store UI cleanup and rework

This commit is contained in:
bl3kunja-FW
2026-05-31 11:23:31 +02:00
parent fc831478de
commit 09ab1c3e29
7 changed files with 356 additions and 124 deletions
+2 -2
View File
@@ -309,7 +309,7 @@ class DataManager:
print(f"Error deleting item: {e}")
return False
def log_payment(self, items: list, total: float, balance_before: float, balance_after: float, buyer: str = '') -> bool:
def log_payment(self, items: list, total: float, balance_before: float, balance_after: float, seller: str = '') -> bool:
try:
store = self.load_store()
payments = store.get('payments', [])
@@ -317,7 +317,7 @@ class DataManager:
payments.append({
'id': new_id,
'timestamp': datetime.now().isoformat(),
'buyer': buyer,
'seller': seller,
'items': items,
'total': round(total, 2),
'balance_before': round(balance_before, 2),