MarsAir
Edit issue report
View open issues
Title
Description
**Description:** When entering promotional codes `JJ5-OPQ-320` and `XX2-YZA-640`, the application rejects them as invalid even though they appear to follow the `XX9-XXX-999` format. The application shows *"Sorry, code [code] is not valid"* instead of the expected discount message. Note: `AF3-FJK-418` (30% discount) is correctly recognized. This may indicate a check digit validation issue in the application, or the codes may have incorrect check digits in our test data. **Steps to Reproduce:** 1. Navigate to the MarsAir home page 2. Select **"July"** from Departing 3. Select **"December (two years from now)"** from Returning 4. Enter promotional code **JJ5-OPQ-320** 5. Click **Search** **Expected Result:** `"Promotional code JJ5-OPQ-320 used: 50% discount!"` **Actual Result:** `"Seats available! Sorry, code JJ5-OPQ-320 is not valid"` **Affected Codes:** | Code | Expected Discount | Actual behavior | |------|-------------------|-----------------| | AF3-FJK-418 | 30% | ✅ Accepted correctly | | JJ5-OPQ-320 | 50% | ❌ Rejected as invalid | | XX2-YZA-640 | 20% | ❌ Rejected as invalid | **Analysis:** Per the requirement, check digit = sum of all other digits mod 10: - `AF3-FJK-418`: digits are 3, 4, 1 → sum = 8 → check digit 8 ✅ - `JJ5-OPQ-320`: digits are 5, 3, 2 → sum = 10 → mod 10 = 0 → check digit should be 0 ✅ (appears correct, possible app bug) - `XX2-YZA-640`: digits are 2, 6, 4, 0 → needs verification of which positions count as "digits"
Severity
Select...
Critical
High
Low
Back
Report an issue
Problem definition
Privacy Policy