mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 03:29:16 +00:00
fix: set docstatus filter to ignore cancel document
This commit is contained in:
@@ -205,7 +205,7 @@ class LandedCostVoucher(Document):
|
|||||||
)
|
)
|
||||||
docs = frappe.db.get_all(
|
docs = frappe.db.get_all(
|
||||||
"Asset",
|
"Asset",
|
||||||
filters={receipt_document_type: item.receipt_document, "item_code": item.item_code},
|
filters={receipt_document_type: item.receipt_document, "item_code": item.item_code, "docstatus":['!=', 2]},
|
||||||
fields=["name", "docstatus"],
|
fields=["name", "docstatus"],
|
||||||
)
|
)
|
||||||
if not docs or len(docs) != item.qty:
|
if not docs or len(docs) != item.qty:
|
||||||
|
|||||||
Reference in New Issue
Block a user