From 4e93e266c1a6683bdf3ada347b366e693abb6e64 Mon Sep 17 00:00:00 2001 From: Wind-Explorer Date: Fri, 25 Sep 2026 15:09:58 +0800 Subject: [PATCH] track delivery history --- persistent_auditor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/persistent_auditor.py b/persistent_auditor.py index 6cde9f9..cb8f6ce 100644 --- a/persistent_auditor.py +++ b/persistent_auditor.py @@ -47,6 +47,7 @@ def load_inventory(): inventory = load_inventory() total_units = 0 failed_attempts = 0 +transaction_history = [] print("=== Stock Auditor ===") print("Type 'quit' to exit.\n") @@ -59,6 +60,7 @@ while True: tax = calculate_tax(quantity) + transaction_history.append(quantity) inventory = process_delivery(inventory, quantity) total_units = process_delivery(total_units, quantity)