Skip to content

Commit 09ba980

Browse files
ravibharathi656mergify[bot]
authored andcommitted
fix: skip empty dimension values in exchange gain loss
(cherry picked from commit 7df9d95)
1 parent 71248ff commit 09ba980

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

erpnext/accounts/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,8 @@ def _build_dimensions_dict_for_exc_gain_loss(
454454
dimensions_dict = frappe._dict()
455455
if entry and active_dimensions:
456456
for dim in active_dimensions:
457-
dimensions_dict[dim.fieldname] = entry.get(dim.fieldname)
457+
if entry_dimension := entry.get(dim.fieldname):
458+
dimensions_dict[dim.fieldname] = entry_dimension
458459
return dimensions_dict
459460

460461

0 commit comments

Comments
 (0)