Skip to content

Commit

Permalink
fix: query condition change
Browse files Browse the repository at this point in the history
  • Loading branch information
rtdany10 authored and deepeshgarg007 committed Nov 13, 2022
1 parent e93ac3c commit 88ce59a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import frappe
from frappe import _
from frappe.desk.reportview import get_match_cond
from frappe.model.document import Document
from frappe.utils import add_days, add_months, format_date, getdate, today
from frappe.utils.jinja import validate_template
Expand Down Expand Up @@ -274,8 +275,12 @@ def get_customer_emails(customer_name, primary_mandatory, billing_and_primary=Tr
link.link_doctype='Customer'
and link.link_name=%s
and contact.is_billing_contact=1
{mcond}
ORDER BY
contact.creation desc""",
contact.creation desc
""".format(
mcond=get_match_cond("Contact")
),
customer_name,
)

Expand Down

0 comments on commit 88ce59a

Please sign in to comment.