bcgov / bcgov/entity

Postal Code Validation on Registrations & Changes

Open
#16,724 5 comments 0 reactions 1 assignee Claimed by @tisharicetong View on GitHub
bug ENTITY - DO NOT USE Priority3
Dominant language
JavaScript
Stars
23
Forks
62
Avg merge
24m
Merged PRs (30d)
1

Description

**Describe the bug in current situation**
Validation does not occur when postal codes for registrations & changes for all addresses (Registered Office Delivery Address, Registered Office Mailing Address, Records Office Delivery Address, Office Delivery Address). The Canada Lookup tool works, however a user can edit the postal code.

Business has requested to check that format is correct before you can leave that page even after Canada Post Look up.

Clients register with a 5 letter postal code, because they forget a letter (VO 1W0 should be V0E 1W0). Other common errors are 7 letter postal code with a dash between the first and last 3 digits, and one is a person registers a postal code but swaps a 0 and a o.

Reference: [FM1018586](https://github.com/bcgov-registries/ops-support/issues/2777) / Postal code is 5 letters long / 2023 06 08 / BCROS / INC0253048 #2777

**Link bug to the User Story**

**Impact of this bug**
Users are able to save incorrect postal codes.

**Chance of Occurring (high/medium/low/very low)**
High

**Pre Conditions: which Env, any pre-requesites or assumptions to execute steps?**

**Steps to Reproduce**
Steps to reproduce the behavior:
1. Login to BC Registries using test account BCREG0011 (BC Services Card --> Virtual testing)
2. Select My Business Registry
3. Scroll down to "EVE TEST EXPIRATION DATE INC." and select Open
4. Select Change next to Office Addresses
5. Address Change Effective 12:01 am notice opens - select Continue to Change of Address
6. Select Change
7. Change all the postal codes to an invalid format: V8W A, V8W 111, V8W 1
8. Select Update Addresses

**Actual/ observed behavior/ results**
User is able to save invalid postal code format

**Expected behavior**
Invalid error occurs.

**Screenshots/ Visual Reference/ Source**
If applicable, add screenshots to help explain your problem. You an use screengrab.![postal code.PNG](https://images.zenhubusercontent.com/647a079fc594273825c3d5a2/6a867256-e34b-43a9-b8c3-2bfab55789ca)![postal code missing validation.PNG](https://images.zenhubusercontent.com/647a079fc594273825c3d5a2/b6e86a93-a776-47f8-9ca4-8f2e57770102)![invalid.PNG](https://images.zenhubusercontent.com/647a079fc594273825c3d5a2/0b49ddc5-c7d5-44d6-aa50-07b0ca820c4c)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.