Commit 6d3dd79
committed
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 and1 parent 611c592 commit 6d3dd79
File tree
11 files changed
+310
-185
lines changed- django_ledger
- forms
- models
- templates/django_ledger
- data_import/tags
- receipt
- views
11 files changed
+310
-185
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