Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
SamDudley committed Feb 4, 2025
1 parent f28ec9f commit c70006e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 0 additions & 2 deletions features/steps/totals.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ def step_impl(context):
.until(ec.presence_of_element_located((By.ID, "year_total_0")))
.get_attribute("innerHTML")
)
from forecast.models import ForecastMonthlyFigure

print(ForecastMonthlyFigure.objects.all())
assert year_to_date_value == "0"
assert year_total_row_0_value == "10,000"

Expand Down
4 changes: 3 additions & 1 deletion front_end/src/Components/AggregateValue/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ const AggregateValue = ({ rowIndex, actualsOnly, extraClasses }) => {
let total = 0;

for (let i = 1; i < 13; i++) {
if (!cells[i] || (actualsOnly && cells[i].isEditable)) continue;
if (!cells[i] || (actualsOnly && cells[i].isActual)) {
continue;
}

total += cells[i].amount;
}
Expand Down
4 changes: 3 additions & 1 deletion front_end/src/Components/TotalAggregate/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ const TotalAggregate = ({ actualsOnly, id, extraClasses }) => {
// eslint-disable-next-line
for (const cell of cells) {
for (let i = 1; i < 13; i++) {
if (!cell[i] || (actualsOnly && cell[i].isEditable)) continue;
if (!cell[i] || (actualsOnly && cell[i].isActual)) {
continue;
}

total += cell[i].amount;
}
Expand Down

0 comments on commit c70006e

Please sign in to comment.