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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: