Skip to content

Commit

Permalink
Merge pull request #1251 from bcgov/fix/daniel-remove-7-9-logic-1172
Browse files Browse the repository at this point in the history
fix: Always enable lines 7 and 9 in 2024
  • Loading branch information
dhaselhan authored Nov 18, 2024
2 parents b184da9 + 709f784 commit 1671727
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/src/views/ComplianceReports/components/_schema.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit 1671727

Please sign in to comment.