Commit 16a95a5
authored
v0.8.2.3 (#293)
* **Refactored `StagedTransactionModel` logic and template conditions:**
- Simplified queryset filters and refactored helpers like `can_unbundle` and `ready_to_import` for better readability.
- Replaced `children_count` check with `children_mapping_done` to streamline logic.
- Updated template conditional to check for `receipt_uuid` instead of `has_receipt`.
- Added commented-out logic for potential future conditions in `data_import_job_txs_table.html`.
### **Summary**
Refactored transaction evaluation logic and templates for clarity and maintainability. Improved existing checks and prepared room for future enhancements in transaction handling.
* v0.8.2.3
- **Enhanced import handling and UI for transactions:**
- Introduced clearer logic for bundled vs. unbundled transactions in `StagedTransactionModel`.
- Added new fields (`imported_count`, `children_import_pending_count`) for tracking transaction states.
- Improved `is_imported` and `is_pending` query handling for parent and child transactions.
- Enabled staged transaction deletion with `can_delete` and pre-deletion validation to reject invalid deletes.
- Updated forms to streamline `tx_import` and `bundle_split` behavior for child transactions.
- **Refined receipt migration and undo-import logic:**
- Modified `migrate_receipt` to handle split amounts during migration.
- Enhanced undo-import to account for child transactions and ensure proper cascade delete behavior.
- **Improved templating and user experience:**
- Added currency formatting for transaction amounts in receipt details.
- Refined dropdown actions in imported transactions list to dynamically respect transaction types.
- Reorganized transaction states and validations in templates for consistency.
- **Refactored import state tracking for clarity:**
- Expanded staged transaction attributes for better state evaluation (`is_children`, `is_parent`, `is_bundled`).
- Introduced additional parent-child relationship checks for transaction clarity.
### **Summary**
Refactored `StagedTransactionModel`, forms, and templates for improved import logic and UI experience. Introduced split amount handling and
* - **Simplified journal entry update logic in import process:**
- Adjusted the order of `unlock` and `unpost` calls to reflect appropriate transactional sequence before deletion.
- **Refined transaction actions in template:**
- Updated dropdown structure to consistently display transaction actions regardless of `is_parent` or `is_bundled` status.
- Improved conditional logic to dynamically manage available actions like "View JE," "View Receipt," and "Undo Import."
- Enhanced template organization for better readability and maintainability.
### **Summary**
Streamlined journal entry handling logic and improved dropdown action display in transaction templates for better consistency and user experience.
### **Backwards Compatibility**
These changes are fully backwards compatible. No significant behavioral or structural changes to existing workflows.1 parent db79832 commit 16a95a5
File tree
11 files changed
+289
-164
lines changed- django_ledger
- forms
- models
- templates/django_ledger
- data_import/tags
- receipt
- views
11 files changed
+289
-164
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
143 | | - | |
| 145 | + | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
| |||
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
163 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
164 | 178 | | |
165 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
166 | 189 | | |
167 | 190 | | |
168 | 191 | | |
169 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
170 | 201 | | |
171 | 202 | | |
172 | 203 | | |
| |||
244 | 275 | | |
245 | 276 | | |
246 | 277 | | |
247 | | - | |
248 | | - | |
| 278 | + | |
| 279 | + | |
249 | 280 | | |
250 | 281 | | |
251 | 282 | | |
252 | 283 | | |
253 | 284 | | |
254 | 285 | | |
255 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
256 | 296 | | |
257 | 297 | | |
258 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
0 commit comments