Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LCFS - Update 'Target CI' lookup and compliance unit calculations #2060

Open
12 tasks
airinggov opened this issue Feb 20, 2025 · 1 comment
Open
12 tasks

LCFS - Update 'Target CI' lookup and compliance unit calculations #2060

airinggov opened this issue Feb 20, 2025 · 1 comment
Assignees
Labels
Compliance Reporting High High priority ticket but not critical at this time Story User story Tested w/ issues Testing did not pass

Comments

@airinggov
Copy link
Collaborator

airinggov commented Feb 20, 2025

Description:
Update the ‘Target CI’ lookup table/field to accept up to 5 decimal places and update the values based on the spreadsheet. Compliance unit calculations on the ‘Fuel supply’ and ‘Export fuel’ schedules should display as whole numbers in the table but retain the decimals in the background for more accurate totals in the Summary. The Summary will do a final rounding to a whole compliance unit value. Adding up the schedule values from the front end may not equal the value in the Summary but this is acceptable. Compliance units are never displayed with decimals but the Target CI column in the schedules should display the full decimal value. Card 2061 will create will run a script against existing 2024 reports including draft reports to recalculate using this new method.

Wireframe:
Carbon Intensity Calculations.xlsx

Purpose and Benefit to User:

  • Ensures precise compliance unit calculations without introducing visible complexity in the UI.
  • Enhances data integrity and reporting accuracy by maintaining decimals in the background.
  • Aligns compliance unit reporting with regulatory and business expectations.

Acceptance Criteria:

  • The ‘Target CI’ field allows up to five decimal places.
  • Existing ‘Target CI’ values are updated to reflect correct decimal precision.
  • Compliance unit values in ‘Fuel supply’ and ‘Export fuel’ schedules display as whole numbers while retaining decimals in the background.
  • The Summary section rounds compliance unit values to whole numbers for final display.
  • Target CI values remain fully visible in schedule columns.
  • Summing frontend schedule values may not match the Summary due to background decimal retention.

Development Checklist:

  • Modify database schema and input validation to support five decimal places for ‘Target CI’.
  • Update existing data to conform to the new decimal precision.
  • Implement logic to store and calculate compliance units with decimals but display whole numbers in tables.
  • Ensure final Summary section rounds compliance units appropriately.
  • Validate UI updates for displaying compliance units and Target CI correctly.
  • Conduct testing to confirm that calculations remain accurate despite rounding rules.

Notes:

  • Verify that backend calculations use the retained decimal values for accuracy.
  • Coordinate with compliance and regulatory teams to confirm alignment with reporting requirements.
@airinggov airinggov added Compliance Reporting Critical Ticket is critical and top priority Story User story labels Feb 20, 2025
@dhaselhan dhaselhan self-assigned this Feb 21, 2025
@airinggov airinggov added High High priority ticket but not critical at this time Tested w/ issues Testing did not pass and removed Critical Ticket is critical and top priority labels Feb 24, 2025
@airinggov
Copy link
Collaborator Author

@dhaselhan the target CI values for Gasoline and Diesel are flipped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compliance Reporting High High priority ticket but not critical at this time Story User story Tested w/ issues Testing did not pass
Projects
None yet
Development

No branches or pull requests

2 participants