include total_grantee_reimbursement_amount in invitation letter template#4551
include total_grantee_reimbursement_amount in invitation letter template#4551marcoacierno merged 1 commit intomainfrom
Conversation
… template Add the grant's total_grantee_reimbursement_amount as a template variable available in invitation letter dynamic documents. This allows the invitation letter to display the post-conference reimbursement amount for grantees. Changes: - Add total_grantee_reimbursement_amount property to InvitationLetterRequest model (returns None if no grant, otherwise delegates to the grant model) - Pass total_grantee_reimbursement_amount in the template context for dynamic document rendering - Add tests for the new property and template variable rendering Closes #4550 Co-authored-by: Marco Acierno <marcoacierno@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
SummaryThis PR adds the Changes:
Review FeedbackArchitecture & Design ✅Good:
Minor observation:
Testing & Coverage ✅Excellent test coverage:
Edge cases covered:
Error Handling ✅Appropriate handling:
Performance ✅No concerns:
Code Quality ✅Clean implementation:
ConclusionLGTM ✅ - This is a well-implemented, thoroughly tested change that follows established patterns in the codebase. The feature correctly exposes grant reimbursement amounts (excluding tickets) for use in invitation letter templates. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4551 +/- ##
=======================================
Coverage 94.15% 94.16%
=======================================
Files 353 353
Lines 10342 10348 +6
Branches 761 762 +1
=======================================
+ Hits 9738 9744 +6
Misses 502 502
Partials 102 102 🚀 New features to boost your workflow:
|
Include grant
total_grantee_reimbursement_amountin the invitation letter template context so it can be used via{{total_grantee_reimbursement_amount}}in dynamic documents.Closes #4550
Generated with Claude Code