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)

(cherry picked from commit a9e8978)
  • Loading branch information
barredterra authored and mergify[bot] committed Jan 30, 2025
1 parent 01ffc76 commit c347e08
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 c347e08

Please sign in to comment.