From 709f7843a209a6e2a79413ed588e03fcc7469fa4 Mon Sep 17 00:00:00 2001 From: Daniel Haselhan Date: Mon, 18 Nov 2024 14:34:30 -0800 Subject: [PATCH] fix: Always enable lines 7 and 9 in 2024 * Remove all other logic for controlling the Diesel and Gasoline controls. Aim to remove this code and have it auto-load for 2025 and onwards. --- .../views/ComplianceReports/components/_schema.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/views/ComplianceReports/components/_schema.jsx b/frontend/src/views/ComplianceReports/components/_schema.jsx index 0c178d83..977230e3 100644 --- a/frontend/src/views/ComplianceReports/components/_schema.jsx +++ b/frontend/src/views/ComplianceReports/components/_schema.jsx @@ -139,12 +139,12 @@ export const renewableFuelColumns = ( data[SUMMARY.LINE_2].gasoline > 0 && data[SUMMARY.LINE_2].gasoline - data[SUMMARY.LINE_4].gasoline > 0 ) - gasolineEditableCells = [SUMMARY.LINE_6, SUMMARY.LINE_7] + gasolineEditableCells = [SUMMARY.LINE_6] else if ( data[SUMMARY.LINE_1].gasoline > 0 && data[SUMMARY.LINE_2].gasoline - data[SUMMARY.LINE_4].gasoline > 0 ) - gasolineEditableCells = [SUMMARY.LINE_8, SUMMARY.LINE_9] + gasolineEditableCells = [SUMMARY.LINE_8] // Line 8 if (data[SUMMARY.LINE_2].gasoline < data[SUMMARY.LINE_4].gasoline) { @@ -164,12 +164,12 @@ export const renewableFuelColumns = ( data[SUMMARY.LINE_2].diesel > 0 && data[SUMMARY.LINE_2].diesel - data[SUMMARY.LINE_4].diesel > 0 ) - dieselEditableCells = [SUMMARY.LINE_6, SUMMARY.LINE_7] + dieselEditableCells = [SUMMARY.LINE_6] else if ( data[SUMMARY.LINE_1].diesel > 0 && data[SUMMARY.LINE_2].diesel - data[SUMMARY.LINE_4].diesel > 0 ) - dieselEditableCells = [SUMMARY.LINE_8, SUMMARY.LINE_9] + dieselEditableCells = [SUMMARY.LINE_8] // Line 8 if (data[SUMMARY.LINE_2].diesel < data[SUMMARY.LINE_4].diesel) { @@ -189,12 +189,12 @@ export const renewableFuelColumns = ( data[SUMMARY.LINE_2].jetFuel > 0 && data[SUMMARY.LINE_2].jetFuel - data[SUMMARY.LINE_4].jetFuel > 0 ) - jetFuelEditableCells = [SUMMARY.LINE_6, SUMMARY.LINE_7] + jetFuelEditableCells = [SUMMARY.LINE_6] else if ( data[SUMMARY.LINE_1].jetFuel > 0 && data[SUMMARY.LINE_2].jetFuel - data[SUMMARY.LINE_4].jetFuel > 0 ) - jetFuelEditableCells = [SUMMARY.LINE_8, SUMMARY.LINE_9] + jetFuelEditableCells = [SUMMARY.LINE_8] // Line 8 if (parseInt(compliancePeriodYear) >= 2028) {