Commit c1b5b38
authored
Refactor SQL query for improved date range logic (#68)
- Updated the date range logic in the TARGET_UNITS_QUERY to calculate
the start date of the quarter dynamically, ensuring accurate reporting
for target units.
- Adjusted the `composeWeeklyReportTitle` method to set the period start
based on the current quarter, enhancing the clarity and accuracy of
weekly financial reports.
These changes improve the accuracy of financial data retrieval and
reporting in the application.1 parent 7825d40 commit c1b5b38
2 files changed
Lines changed: 11 additions & 7 deletions
File tree
- workers/main/src/services
- TargetUnit
- WeeklyFinancialReport
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
30 | 37 | | |
31 | 38 | | |
32 | 39 | | |
| |||
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
| 154 | + | |
| 155 | + | |
159 | 156 | | |
160 | 157 | | |
161 | 158 | | |
| |||
0 commit comments