bcgov / bcgov/SIMS

Content: Institution: Unexpected error when study costs = or greater than 100,000,001

Open
#3,696 2 comments 0 reactions 0 assignees View on GitHub
Business Content Form editor Institution
Dominant language
TypeScript
Stars
29
Forks
15
PR merge metrics
No merged PRs in 30d

Description

**Describe the Bug**
Unexpected error when study costs = or greater than 100,000,001

**Expected Behaviour**
When the values are less than 100,000,000 (TBD) the warning that it needs to go to StudentAID BC for review is displayed

**Actual Behaviour**
When study cost value is "100,000,001", the information message warning is removed
Click "Validate" button - nothing happens
Click "Add offering now"

Unexpected error "Unexpected error(s) happened during the submission: Tuition expenses must not be greater than 10000000"

image.png

** Steps To Reproduce**

Preconditions
BC Public institution is created
Program that allows FT and PT is created

1. Go to a test BC Public institution to the program that was created above
2. Click on 'Add offering.'
3. Add any name
4. Add any year
5. Offered: PT
6. Course load: 40
7. Delivered: onsite
8. WIL: no
9. Study dates: 16 weeks (e.g. Sept. 4, 2024 - Dec. 20, 2024)
10. Study breaks: no
11. Study costs (enter generic study costs that have been used throughout assessment testing)
Tuition: 100,000,001
12. Study availability: yes
13. Declaration: Select checkbox
15. Click "Validate" button
16. Click "Add offering now" button
17. Note the message at the top right of the screen
18. Repeat with fields
Books and Supplies:
Miscellaneous costs:
Exceptional costs:

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the Add offering flow for a BC public institution with Tuition set to 100,000,001, then trace the Validate and Add offering now entry points. Compare the threshold used by the warning with the submission error, and consider the issue done when validation gives a clear, consistent result for the stated study-cost boundary.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
full-stack
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.