fix: ignore cancelled SLEs (#29679)
This commit is contained in:
parent
a3e69cf75d
commit
0ca60afc3f
@ -215,7 +215,7 @@ class StockController(AccountsController):
|
|||||||
from
|
from
|
||||||
`tabStock Ledger Entry`
|
`tabStock Ledger Entry`
|
||||||
where
|
where
|
||||||
voucher_type=%s and voucher_no=%s
|
voucher_type=%s and voucher_no=%s and is_cancelled = 0
|
||||||
""", (self.doctype, self.name), as_dict=True)
|
""", (self.doctype, self.name), as_dict=True)
|
||||||
|
|
||||||
for sle in stock_ledger_entries:
|
for sle in stock_ledger_entries:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user