bcgov / cas-reporting

This is for the Clean Growth Digital Services team for work related to reporting.
Apache License 2.0
0 stars 0 forks source link

Compliance Summary Page for Regulated Operations #146

Open NicoleGovvy opened 9 months ago

NicoleGovvy commented 9 months ago

Description: As a Regulated Operation I want a Compliance Summary page so that I can see final emissions totals.

WIREFRAME

Question: what is initial_compliance_period? The spreadsheet says it has a value of 2024, but should that be pulled from the first year the facility reported rather than hardcoded? Answer: Yes it will always be 2024. Hardcode it.

Acceptance Criteria: Given I am a Regulated Operation (Regulated, Opt-in or New Entrant) When I have filled out all my required forms including emissions data, production data, allocation of emissions and any additional reporting data Then I need to see a summary page with compliance information/totals (calculated from data input on previous forms). This is required as part of my compliance report, including my excess or credited emissions.

Given I am a Developer When I am building the Compliance Summary page Then I need to reference the "Emissions Summary" spreadsheet saved in the SME teams channel under Files > Reporting App in order to create the required calculations/totals.

naics_code_regulatory_value model: id pkey naics_code fkey -> naics_code reduction_factor decimal tightening_rate decimal valid_from timestamptz valid_to timestamptz

product_emission_intensity model: id pkey product_id fkey -> product product_weighted_average_emission_intensity decimal valid_from timestamptz valid_to timestamptz

Development Checklist:

Definition of Ready (Note: If any of these points are not applicable, mark N/A)

Definition of Done (Note: If any of these points are not applicable, mark N/A)

Notes:

-

rdromey commented 1 month ago

@dleard to write AC and dev checklist

patriciarussellCAS commented 3 days ago

Blocked by #237

patriciarussellCAS commented 1 day ago

Note from Collab: Please add another data field under each Product: Production {April 1 - Dec 31 2024}