Store UI cleanup and rework
This commit is contained in:
+2
-2
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user