File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
coldfront/core/allocation Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -115,11 +115,11 @@ <h3><i class="fas fa-list" aria-hidden="true"></i> Allocation Information</h3>
115
115
< th scope ="row " class ="text-nowrap "> Service Period:</ th >
116
116
< td > 1 Month</ td >
117
117
</ tr >
118
- {% if offer_letter_code %}
118
+ {% if expense_code %}
119
119
< tr >
120
120
< th scope ="row " class ="text-nowrap "> Requested Expense Code:</ th >
121
121
< td >
122
- {% for code in offer_letter_code %}
122
+ {% for code in expense_code %}
123
123
{{ code.value }}< br >
124
124
{% endfor %}
125
125
</ td >
Original file line number Diff line number Diff line change @@ -608,6 +608,10 @@ def form_valid(self, form):
608
608
quantity = form_data .get ('quantity' , 1 )
609
609
allocation_account = form_data .get ('allocation_account' , None )
610
610
611
+ if resource_obj .name == "Tier 3" and quantity % 20 != 0 :
612
+ form .add_error ("quantity" , format_html ("Tier 3 quantity must be a multiple of 20." ))
613
+ return self .form_invalid (form )
614
+
611
615
# A resource is selected that requires an account name selection but user has no account names
612
616
if (
613
617
ALLOCATION_ACCOUNT_ENABLED
You can’t perform that action at this time.
0 commit comments