fix(profit-and-loss-statement): margin calculation the report showing null% for empty cell

(cherry picked from commit 671555edbc)
This commit is contained in:
Ahmed Reda Abukhatwa
2026-04-30 20:02:00 +03:00
committed by Mergify
parent 04fe76bf83
commit b3d3f13fc5

View File

@@ -795,7 +795,7 @@ def compute_margin_view_data(data, columns, accumulated_values):
if base_value == 0: if base_value == 0:
if curr_value == 0: if curr_value == 0:
data[row_idx][curr_period] = "" data[row_idx][curr_period] = 0
else: else:
data[row_idx][curr_period] = "N/A" data[row_idx][curr_period] = "N/A"
continue continue