mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
fix: skip empty spacer rows in compute_growth_view_data (P&L growth view)
(cherry picked from commit 3592c3086d)
This commit is contained in:
committed by
Mergify
parent
90ac065930
commit
18afcf0c01
@@ -737,6 +737,9 @@ def compute_growth_view_data(data, columns):
|
|||||||
data_copy = copy.deepcopy(data)
|
data_copy = copy.deepcopy(data)
|
||||||
|
|
||||||
for row_idx in range(len(data_copy)):
|
for row_idx in range(len(data_copy)):
|
||||||
|
if not data_copy[row_idx]:
|
||||||
|
continue
|
||||||
|
|
||||||
for column_idx in range(1, len(columns)):
|
for column_idx in range(1, len(columns)):
|
||||||
previous_period_key = columns[column_idx - 1].get("key")
|
previous_period_key = columns[column_idx - 1].get("key")
|
||||||
current_period_key = columns[column_idx].get("key")
|
current_period_key = columns[column_idx].get("key")
|
||||||
|
|||||||
Reference in New Issue
Block a user