fix: ignore cancelled SLEs (#29679)

This commit is contained in:
Ankush Menat
2022-02-08 10:24:19 +05:30
committed by GitHub
parent a3e69cf75d
commit 0ca60afc3f

View File

@@ -215,7 +215,7 @@ class StockController(AccountsController):
from
`tabStock Ledger Entry`
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)
for sle in stock_ledger_entries: