Grant admin: show included reimbursements on changelist#4599
Conversation
Add the existing approved_amounts_display column to list_display so staff can see category names and amounts next to the total without opening each grant. Empty grants show an em dash.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Adds an Included reimbursements column to the IssuesPrecision loss on monetary amounts — |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4599 +/- ##
=======================================
Coverage 92.51% 92.51%
=======================================
Files 359 359
Lines 10764 10764
Branches 814 814
=======================================
Hits 9958 9958
Misses 696 696
Partials 110 110 🚀 New features to boost your workflow:
|
Use :.0f for Total and each reimbursement line so the changelist matches granted_amount (decimal_places=0) and avoids 100.00 vs 100 mismatch.
Summary
Adds an Included reimbursements column to the Grant admin list view (
GrantAdminchangelist). Each row lists linkedGrantReimbursementlines ascategory name: amount, next to the existing Total column.Why
Staff reviewing confirmed/approved grants (e.g. filtered changelist) can see which reimbursement categories are included without opening every grant detail page.
Notes
approved_amounts_displaymethod; it was previously defined but not inlist_display.get_querysetalready prefetchesreimbursements__category, so this should not add N+1 queries.