Commit aa3838e
committed
- **Enhanced
- Introduced additional helper methods for transaction evaluation (`is_parent`, `is_bundled`, `is_transfer`, `is_debt_payment`, etc.) to improve clarity and maintainability.
- Refactored field visibility logic with methods like `can_have_amount_split`, `can_have_receipt`, `can_have_customer`, and `can_have_vendor` to simplify UI and data management conditions.
- Updated transaction type handling with dedicated cases for bundled and unbundled transactions, including conditions for sales, expense, and debt payments.
- Added new URL generation methods (`get_data_import_url`, `get_data_import_reset_url`) for navigating import job data and reset actions.
- Enhanced queryset filtering methods (`for_entity`, `for_import_job`) to dynamically handle multiple entity and import job types.
### **Summary**
Refactored `StagedTransactionModel` to introduce new helper methods and enhance transaction type management, improving logic handling for bundled/unbundled and receipt-based scenarios. Streamlined field visibility checks and added additional URL utilities for better data import handling.
### **Backwards Compatibility**
These changes maintain full backwards compatibility. Ensure downstream services leverage new helper methods and updated field logic correctly.StagedTransactionModel and transaction management logic:**1 parent 02bc722 commit aa3838e
1 file changed
+457
-153
lines changed
0 commit comments