fix: Customer Primary Contact (backport #33424) (#33440)

fix: Customer Primary Contact (#33424)

Co-authored-by: Nihantra C. Patel <n.patel.serpentcs@gmail.com>
(cherry picked from commit 7d9f3f23dd)

Co-authored-by: Solufyin <34390782+Solufyin@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2022-12-27 18:28:36 +05:30
committed by GitHub
parent a332b229cf
commit 73c9820e82

View File

@@ -740,7 +740,7 @@ def get_customer_primary_contact(doctype, txt, searchfield, start, page_len, fil
qb.from_(con) qb.from_(con)
.join(dlink) .join(dlink)
.on(con.name == dlink.parent) .on(con.name == dlink.parent)
.select(con.name, con.full_name, con.email_id) .select(con.name, con.email_id)
.where((dlink.link_name == customer) & (con.name.like(f"%{txt}%"))) .where((dlink.link_name == customer) & (con.name.like(f"%{txt}%")))
.run() .run()
) )