UI cleanup

This commit is contained in:
2026-05-30 23:39:56 +02:00
parent 44c45f5410
commit fc831478de
9 changed files with 1313 additions and 561 deletions
+2 -1
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) -> bool:
def log_payment(self, items: list, total: float, balance_before: float, balance_after: float, buyer: str = '') -> bool:
try:
store = self.load_store()
payments = store.get('payments', [])
@@ -317,6 +317,7 @@ class DataManager:
payments.append({
'id': new_id,
'timestamp': datetime.now().isoformat(),
'buyer': buyer,
'items': items,
'total': round(total, 2),
'balance_before': round(balance_before, 2),