Skip to content

Commit

Permalink
offer letter code to expense code
Browse files Browse the repository at this point in the history
  • Loading branch information
claire-peters committed Oct 26, 2023
1 parent e6086cf commit c96606c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h3><i class="fas fa-list" aria-hidden="true"></i> Allocation Information</h3>
</tr>
{% if offer_letter_code %}
<tr>
<th scope="row" class="text-nowrap">Offer Letter Code:</th>
<th scope="row" class="text-nowrap">Requested Expense Code:</th>
<td>
{% for code in offer_letter_code %}
{{ code.value }}<br>
Expand Down
4 changes: 2 additions & 2 deletions coldfront/core/allocation/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ def get_context_data(self, **kwargs):
)
context['expense_codes'] = expense_codes

offer_letter_code_type = AllocationAttributeType.objects.get(name="Offer Letter Code")
context['offer_letter_code'] = allocation_obj.allocationattribute_set.filter(
offer_letter_code_type = AllocationAttributeType.objects.get(name="Expense Code")
context['expense_code'] = allocation_obj.allocationattribute_set.filter(
allocation_attribute_type=offer_letter_code_type
)

Expand Down

0 comments on commit c96606c

Please sign in to comment.