mirror of
https://github.com/frappe/erpnext.git
synced 2026-10-29 22:57:42 +00:00
fix(stock): ignore cancelled entries in valuation validation
This commit is contained in:
@@ -153,7 +153,7 @@ class StockSettings(Document):
|
||||
# which does not have it's own valuation method
|
||||
sle = frappe.db.sql(
|
||||
"""select name from `tabStock Ledger Entry` sle
|
||||
where exists(select name from tabItem
|
||||
where sle.is_cancelled=0 and exists(select name from tabItem
|
||||
where name=sle.item_code and (valuation_method is null or valuation_method='')) limit 1
|
||||
"""
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user