Skip to content

Commit

Permalink
fix: review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dilshanavs committed Dec 14, 2023
1 parent 06eb060 commit 39b958e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions erpnext/stock/report/stock_ledger/stock_ledger.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ frappe.query_reports["Stock Ledger"] = {
"fieldname": "select_uom",
"label": __("Select UOM"),
"fieldtype": "Select",
"options": ["Default UOM","Purchase UOM", "Sales UOM"] ,
"default": "Default UOM",
"options": ["Stock UOM","Purchase UOM", "Sales UOM"] ,
"default": "Stock UOM",
},
{
"fieldname": "valuation_field_type",
Expand Down
2 changes: 1 addition & 1 deletion erpnext/stock/report/stock_ledger/stock_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

def execute(filters=None):
is_reposting_item_valuation_in_progress()
if filters.get("include_uom") and (filters.get("select_uom")) != "Default UOM":
if filters.get("include_uom") and (filters.get("select_uom")) != "Stock UOM":
frappe.throw(
_("Cannot select filters {0} and {1} together!").format(
frappe.bold("Include UOM"), frappe.bold("Select UOM")
Expand Down

0 comments on commit 39b958e

Please sign in to comment.