mirror of
https://github.com/frappe/erpnext.git
synced 2026-10-29 22:57:42 +00:00
fix(stock): leave cancelled entries out of the item heatmap
(cherry picked from commit 4d22fd53e3)
This commit is contained in:
@@ -1249,6 +1249,7 @@ def get_timeline_data(doctype: str, name: str) -> dict[int, int]:
|
||||
frappe.qb.from_(sle)
|
||||
.select(UnixTimestamp(sle.posting_date), Count("*"))
|
||||
.where(sle.item_code == name)
|
||||
.where(sle.is_cancelled == 0)
|
||||
.where(sle.posting_date > CurDate() - Interval(years=1))
|
||||
.groupby(sle.posting_date)
|
||||
.run()
|
||||
|
||||
Reference in New Issue
Block a user