mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
fix: linter test solve
This commit is contained in:
@@ -204,10 +204,14 @@ class LandedCostVoucher(Document):
|
|||||||
"purchase_invoice" if item.receipt_document_type == "Purchase Invoice" else "purchase_receipt"
|
"purchase_invoice" if item.receipt_document_type == "Purchase Invoice" else "purchase_receipt"
|
||||||
)
|
)
|
||||||
docs = frappe.db.get_all(
|
docs = frappe.db.get_all(
|
||||||
"Asset",
|
"Asset",
|
||||||
filters={receipt_document_type: item.receipt_document, "item_code": item.item_code, "docstatus":['!=', 2]},
|
+ filters={
|
||||||
fields=["name", "docstatus"],
|
+ receipt_document_type: item.receipt_document,
|
||||||
)
|
+ "item_code": item.item_code,
|
||||||
|
+ "docstatus": ["!=", 2],
|
||||||
|
+ },
|
||||||
|
fields=["name", "docstatus"],
|
||||||
|
)
|
||||||
if not docs or len(docs) != item.qty:
|
if not docs or len(docs) != item.qty:
|
||||||
frappe.throw(
|
frappe.throw(
|
||||||
_(
|
_(
|
||||||
|
|||||||
Reference in New Issue
Block a user