Skip to content

Commit

Permalink
fix: Customer Primary Contact (#33424)
Browse files Browse the repository at this point in the history
Co-authored-by: Nihantra C. Patel <n.patel.serpentcs@gmail.com>
  • Loading branch information
Solufyin and nihantra authored Dec 26, 2022
1 parent 9858d9d commit 7d9f3f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/selling/doctype/customer/customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ def get_customer_primary_contact(doctype, txt, searchfield, start, page_len, fil
qb.from_(con)
.join(dlink)
.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}%")))
.run()
)

0 comments on commit 7d9f3f2

Please sign in to comment.