fix: solve linter test and update

This commit is contained in:
viralkansodiya15 2023-10-30 13:01:25 +05:30 committed by GitHub
parent 76c61c1b04
commit a15484fe3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -205,11 +205,11 @@ class LandedCostVoucher(Document):
) )
docs = frappe.db.get_all( docs = frappe.db.get_all(
"Asset", "Asset",
+ filters={ filters={
+ receipt_document_type: item.receipt_document, receipt_document_type: item.receipt_document,
+ "item_code": item.item_code, "item_code": item.item_code,
+ "docstatus": ["!=", 2], "docstatus": ["!=", 2],
+ }, },
fields=["name", "docstatus"], fields=["name", "docstatus"],
) )
if not docs or len(docs) != item.qty: if not docs or len(docs) != item.qty: