mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
fix(profit-and-loss-statement): margin calculation the report showing null% for empty cell
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user