mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
Merge pull request #24438 from AfshanKhan/fix-stock-ageing-v12
fix: stock ageing should not take cancelled stock entries.
This commit is contained in:
@@ -211,7 +211,8 @@ def get_stock_ledger_entries(filters):
|
|||||||
from `tabItem` {item_conditions}) item
|
from `tabItem` {item_conditions}) item
|
||||||
where item_code = item.name and
|
where item_code = item.name and
|
||||||
company = %(company)s and
|
company = %(company)s and
|
||||||
posting_date <= %(to_date)s
|
posting_date <= %(to_date)s and
|
||||||
|
is_cancelled != 1
|
||||||
{sle_conditions}
|
{sle_conditions}
|
||||||
order by posting_date, posting_time, sle.creation, actual_qty""" #nosec
|
order by posting_date, posting_time, sle.creation, actual_qty""" #nosec
|
||||||
.format(item_conditions=get_item_conditions(filters),
|
.format(item_conditions=get_item_conditions(filters),
|
||||||
|
|||||||
Reference in New Issue
Block a user