From b3d3f13fc5c74804c2c7d53d8b37a800c533d34b Mon Sep 17 00:00:00 2001 From: Ahmed Reda Abukhatwa Date: Thu, 30 Apr 2026 20:02:00 +0300 Subject: [PATCH] fix(profit-and-loss-statement): margin calculation the report showing null% for empty cell (cherry picked from commit 671555edbc55989b30bc2c9c45c079e650aa9ce2) --- erpnext/accounts/report/financial_statements.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/report/financial_statements.py b/erpnext/accounts/report/financial_statements.py index f03d35dbb5a..7a8cadc128e 100644 --- a/erpnext/accounts/report/financial_statements.py +++ b/erpnext/accounts/report/financial_statements.py @@ -795,7 +795,7 @@ def compute_margin_view_data(data, columns, accumulated_values): if base_value == 0: if curr_value == 0: - data[row_idx][curr_period] = "" + data[row_idx][curr_period] = 0 else: data[row_idx][curr_period] = "N/A" continue