Skip to content

Commit

Permalink
fix(E Invoice Import): handle missing filters for Purchase Order Item (
Browse files Browse the repository at this point in the history
…#87) (#89)

Co-authored-by: Raffael Meyer <[email protected]>
  • Loading branch information
mergify[bot] and barredterra authored Jan 30, 2025
1 parent 7271e1e commit 4bc1edb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,8 @@ def link_to_purchase_invoice(einvoice: str, purchase_invoice: str):
@frappe.whitelist()
@frappe.validate_and_sanitize_search_inputs
def po_item_query(doctype, txt, searchfield, start, page_len, filters, as_dict=False):
item_code = filters.pop("item_code")
purchase_order = filters.pop("parent")
item_code = filters.pop("item_code", None)
purchase_order = filters.pop("parent", None)

if not purchase_order:
return []
Expand Down

0 comments on commit 4bc1edb

Please sign in to comment.