You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- **Refactored model definitions and improved transaction query logic:**
- Reorganized imports across affected files for consistency (`bank_account.py`, `journal_entry.py`, `data_import.py`).
- Enhanced `BankAccountModel` by streamlining field definitions and `configure` method logic to reduce redundancy.
- Refactored queryset methods in `StagedTransactionModel` and `ImportJobModel` for improved clarity:
- Introduced new annotations (`txs_imported_count`, `txs_pending`, `ready_to_match`) for better transaction state tracking.
- Refined `is_imported` and `is_pending` methods to handle parent-child relationships and improve state evaluation.
- Added additional URL methods to `ImportJobModel` for easier navigation (`get_list_url`, `get_delete_url`, etc.).
- Expanded `StagedTransactionModel` with new fields such as `matched_transaction_model`, `matched_transaction`, and `notes` for better transfer handling and description support.
- Introduced `ready_to_match` and `is_ready_to_match` for staged transactions to support enhanced matching workflows.
### **Summary**
Refactored model structure and enhanced transaction tracking/query logic for better clarity, maintainability, and functionality. Improvements include streamlined method definitions, additional annotations, and new fields for transaction operations.
### **Backwards Compatibility**
No breaking changes introduced; existing workflows remain unaffected. Newly added functionality is fully compatible with previous logic.
0 commit comments