Skip to content

Commit

Permalink
[Track-322] RF month grid fix quarter years (#2481)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolkamps1 authored Dec 12, 2024
1 parent 43ded9c commit 74d2962
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions epictrack-api/src/api/reports/resource_forecast_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -953,17 +953,20 @@ def _get_quarter_section_meta_data(
quarter1, remaining = divmod(report_start_date.month, 3)
if remaining > 0:
quarter1 += 1
q1_year = report_start_date.year
if quarter1 == 4:
quarter2 = 1
q2_year = q1_year + 1
else:
quarter2 = quarter1 + 1
q2_year = q1_year
styles = []
cell_widths = []
section_headings = [
f"{report_date.year} Q{quarter1}",
f"{q1_year} Q{quarter1}",
"",
"",
f"{self.end_date.year} Q{quarter2}",
f"{q2_year} Q{quarter2}",
]
styles.append(("SPAN", (cell_index, 0), (cell_index + 2, 0)))
styles.append(
Expand Down

0 comments on commit 74d2962

Please sign in to comment.