bcgov / bcgov/lcfs

LCFS - Exemption reporting and Non-assessment are mutually exclusive

Open
#4,016 0 comments 0 reactions 1 assignee Claimed by @prv-proton View on GitHub
Compliance Reporting Medium Task Tested :)
Dominant language
Python
Stars
6
Forks
6
Avg merge
2d 7h
Merged PRs (30d)
87

Description

**Describe the task**
Update the Compliance Report assessment options so that **Exemption reporting** and **Non-assessment** are mutually exclusive selections. Users must only be able to select one option at a time, preventing both options from being true simultaneously.

Image

**Purpose**
These two selections represent different assessment outcomes and cannot logically occur together. Enforcing mutual exclusivity prevents inconsistent report states and ensures correct processing logic.

**Acceptance Criteria**
- [ ] The **Exemption reporting** and **Non-assessment** options cannot both be selected at the same time.
- [ ] Selecting **Exemption reporting** automatically unselects **Non-assessment** if it was previously selected.
- [ ] Selecting **Non-assessment** automatically unselects **Exemption reporting** if it was previously selected.
- [ ] The UI clearly reflects that only one of these options can be active at a time.
- [ ] Backend validation prevents both values from being stored as true simultaneously.

**Additional context**
- This logic applies to the Compliance Report assessment section used by IDIR analysts.
- Ensure existing reports with previously saved data are not broken by the validation change.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.