{% set lid = frappe.form_dict.get('id') %} {% set l = frappe.db.get_value("Listing", {"name": lid, "status":"Published", "referral_eligible":1}, ["name","title","description","email","phone","website","address","city","state","zip_code"], as_dict=True) if lid else None %} {% if not l %}

Agency not found

This agency isn't currently listed. Browse the directory.
{% else %}

{{ l.title }}

{% if l.city or l.state %}

{{ l.city }}{% if l.city and l.state %}, {% endif %}{{ l.state }}

{% endif %}

Contact

{% if l.phone %}

Phone: {{ l.phone }}

{% endif %} {% if l.email %}

Email: {{ l.email }}

{% endif %} {% if l.website %}

Website: {{ l.website }}

{% endif %} {% if l.address or l.city %}

Address: {{ l.address }}{% if l.address %}, {% endif %}{{ l.city }} {{ l.state }} {{ l.zip_code }}

{% endif %}
{% if l.description %}

About

{{ l.description | safe }}
{% endif %}
{% set fees = frappe.get_all("Listing Service Fee", filters={"parent": l.name, "parenttype":"Listing"}, fields=["service_type","fee_label","fee_type","amount","currency"], order_by="idx asc") %} {% if fees %}

Services & fees

{% for f in fees %} {% endfor %}
ServiceDetailTypeFee
{{ frappe.db.get_value("Service Type", f.service_type, "service_name") or f.service_type }} {{ f.fee_label or "" }} {{ f.fee_type }} {{ frappe.utils.fmt_money(f.amount, currency=f.currency or "USD") }}

Published static fees. This agency does not quote on the spot.

{% endif %}
Request this kind of investigator
{% endif %}