fecgov / fecfile-web-app

7 stars 4 forks source link

System to set default dates to be current year for report type YE unless the current month is January #2101

Open exalate-issue-sync[bot] opened 1 month ago

exalate-issue-sync[bot] commented 1 month ago

Business Reason

As a Committee Administrator, I will be able to view report coverage dates that are populated by the system so that I can create my report for Report Type ‘YE’ (Year End) with the standard dates or edit the dates if necessary.

Acceptance Criteria

If I create a new report When I select ‘Reporting Frequency', 'Time Period', and 'Report Type' = 'YE’ Then The system will set the 'Covering Period' 'From' and 'To' dates as follows:

If the current month (calendar month) is January

Report type code: YE (Non-election year, Quarterly Reporting Frequency)

Coverage start Date: 7/1/YYYY-1 ('YYYY-1' = previous year)

Coverage End Date: 12/31/YYYY-1 ('YYYY-1' = previous year)

Report type code: YE (Non-election year, Monthly Reporting Frequency)

Coverage start Date: 12/1/YYYY-1 ('YYYY-1' = previous year)

Coverage End Date: 12/31/YYYY-1 ('YYYY-1' = previous year)

Report type code: YE (Election year)

Coverage start Date: 10/1/YYYY-1 ('YYYY-1' = previous year)

Coverage End Date: 12/31/YYYY-1 ('YYYY-1' = previous year)

Else if the current month is anything other than January

Report type code: YE (Non-election year, Quarterly Reporting Frequency)

Coverage start Date: 7/1/YYYY (YYYY = current year)

Coverage End Date: 12/31/YYYY (YYYY = current year)

Report type code: YE (Non-election year, Monthly Reporting Frequency)

Coverage start Date: 12/1/YYYY (YYYY = current year)

Coverage End Date: 12/31/YYYY (YYYY = current year)

Report type code: YE (Election year)

Coverage start Date: 10/1/YYYY (YYYY = current year)

Coverage End Date: 12/31/YYYY (YYYY = current year)

And I should be allowed to edit those dates before I

QA Notes

DEV Notes

Design

null

See full ticket and images here: FECFILE-1521

exalate-issue-sync[bot] commented 2 weeks ago

Passes CR. Sending to QA.