Skip to content

Commit

Permalink
fix: fetch onlt HD Customer contacts
Browse files Browse the repository at this point in the history
  • Loading branch information
rtdany10 authored Nov 9, 2023
1 parent fb4e3ce commit 8c980f1
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 8c980f1

Please sign in to comment.