Skip to content

Commit

Permalink
fix: keyerror while checking the stock balance report
Browse files Browse the repository at this point in the history
(cherry picked from commit a627d2a)
  • Loading branch information
rohitwaghchaure authored and mergify[bot] committed Jun 20, 2023
1 parent 95e3dc9 commit baf014f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/stock/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ def add_additional_uom_columns(columns, result, include_uom, conversion_factors)

for row_idx, row in enumerate(result):
for convertible_col, data in convertible_column_map.items():
conversion_factor = conversion_factors[row.get("item_code")] or 1
conversion_factor = conversion_factors.get(row.get("item_code")) or 1.0
for_type = data.for_type
value_before_conversion = row.get(convertible_col)
if for_type == "rate":
Expand Down

0 comments on commit baf014f

Please sign in to comment.