Skip to content

Commit

Permalink
fix: end use validation
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-hashimoto committed Jan 2, 2025
1 parent 64b5b3d commit 275148b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/lcfs/web/api/fuel_supply/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class FuelSupplyCreateUpdateSchema(BaseSchema):
compliance_period: Optional[str] = None
fuel_type_id: int
fuel_category_id: int
end_use_id: Optional[int] = None
end_use_id: int
provision_of_the_act_id: int
quantity: int
units: str
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/assets/locales/en/fuelSupply.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"fuelType": "Fuel type",
"fuelTypeOther": "Fuel type other",
"fuelCategoryId": "Fuel category",
"endUse": "End use",
"endUseId": "End use",
"provisionOfTheActId": "Determining carbon intensity",
"fuelCode": "Fuel code",
"quantity": "Quantity supplied",
Expand All @@ -33,4 +33,4 @@
"validateMsg": {
"isRequired": "{{field}} is required"
}
}
}
2 changes: 1 addition & 1 deletion frontend/src/views/FuelSupplies/_schema.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export const fuelSupplyColDefs = (optionsData, errors, warnings) => [
{
field: 'endUseType',
headerComponent: RequiredHeader,
headerName: i18n.t('fuelSupply:fuelSupplyColLabels.endUse'),
headerName: i18n.t('fuelSupply:fuelSupplyColLabels.endUseId'),
cellEditorParams: (params) => ({
options: [
...new Set(
Expand Down

0 comments on commit 275148b

Please sign in to comment.