Files
TimeTracker/app
Dries Peeters 89717dc089 Fix log_event() calls in inventory routes to use keyword arguments
Fixed all log_event() calls in app/routes/inventory.py that were incorrectly
passing dictionaries as positional arguments. The log_event() function signature
requires the event name as the first positional argument and all other data as
keyword arguments (via **kwargs).

Changed 19 calls from:
  log_event('event_name', {'key': value})  # Wrong

To:
  log_event('event_name', key=value)  # Correct

This resolves the error 'log_event() takes 1 positional argument but 2 were
given' that occurred when creating or editing stock items and other inventory
operations.

Affected operations:
- Stock item create/update/delete
- Warehouse create/update/delete
- Stock movements, transfers, and adjustments
- Stock reservations
- Supplier create/update/delete
- Purchase order operations
2025-12-29 12:57:05 +01:00
..