LCFS-1055: Allocation agreement schedule is allowing all fuel types to chose any of the 3 determining carbon intensity options #1087
+43
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
The
provisionOfTheAct field
(labeled as "Determining Carbon Intensity") was displaying all available options, regardless of the selected fuel type. This caused confusion since not all provisions are applicable to every fuel type.Fix
The
provisionOfTheAct
field is now dynamically filtered based on the selectedFuel Type
field, following the existing relationship in the database. The field will only display the provisions that are relevant to the chosen fuel type.The provisions displayed are based on the following mappings:
Examples:
Fuel Type: Electricity
Fuel Type
Electricity
has two possible Determining Carbon Intensity options:Default carbon intensity - section 19 (b) (ii)
,Fuel code - section 19 (b) (i)
Fuel Type: Fossil-derived gasoline
Fuel Type
Fossil-derived gasoline
has one possible Determining Carbon Intensity option:Prescribed carbon intensity - section 19 (a)
Prompt for Provision of the Act selection
Determining Carbon Intensity field needs to be selected when changing fuel type.
Story