fix: skip empty spacer rows in compute_growth_view_data (P&L growth view)

This commit is contained in:
Ahmed Reda Abukhatwa
2026-05-14 14:40:03 +03:00
parent 7335011814
commit 3592c3086d

View File

@@ -737,6 +737,9 @@ def compute_growth_view_data(data, columns):
data_copy = copy.deepcopy(data)
for row_idx in range(len(data_copy)):
if not data_copy[row_idx]:
continue
for column_idx in range(1, len(columns)):
previous_period_key = columns[column_idx - 1].get("key")
current_period_key = columns[column_idx].get("key")