Skip to content

Commit

Permalink
fix: fetch onlt HD Customer contacts (#1624)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtdany10 authored Nov 27, 2023
1 parent 81b106d commit 864d046
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions helpdesk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def get_customer(contact: str) -> tuple[str]:
.select(QBDynamicLink.link_name)
.where(QBDynamicLink.parentfield == "links")
.where(QBDynamicLink.parenttype == "Contact")
.where(QBDynamicLink.link_doctype == "HD Customer")
.join(QBContact)
.on(QBDynamicLink.parent == QBContact.name)
.where(Criterion.any(conditions))
Expand Down

0 comments on commit 864d046

Please sign in to comment.