Liquid syntax
  • Welcome
  • Introduction
    • What is Liquid syntax?
    • Liquid operators
    • Liquid objects
    • Liquid tags
    • Liquid filters
    • Best practices
  • Information
    • Attributes
    • Consolidation
    • Custom fields
    • Date filter reference
    • Deal pricing
    • Special items
  • PDF renderer
    • PDF document limitations
  • General
    • Address detail
    • Attachments
    • Company
    • Emails
    • Links
    • Phones
    • Store
  • Activity
    • Activity
  • Inventory Check
    • Inventory check (stock check)
    • Inventory check items (stock check items)
  • Invoices & Credits
    • Invoice
    • Invoice items
    • Invoice transactions
    • Invoice taxes
  • Opportunities
    • Opportunity
    • Opportunity items
    • Opportunity item assets
    • Opportunity item surcharges
    • Opportunity costs
    • Opportunity return item assets
    • Consolidated opportunity items
    • Consolidated opportunities
  • People & Organizations
    • Contact
    • Organization
    • User
    • Vehicle
    • Venue
  • Products
    • Product
    • Product group
    • Charging period
    • Product accessories
    • Product assets
    • Stock level
  • Project
    • Project
  • Purchase orders
    • Purchase order
    • Purchase order items
  • Quarantine
    • Quarantine
  • Service
    • Service
  • Testing & inspection
    • Inspection results
    • Inspection result tasks
Powered by GitBook
On this page
  • Members
  • Document layouts
  • Discussion templates
  • activities
  • address
  • address_detail
  • attachments
  • description
  • email
  • emails
  • icon_url
  • image_attachments
  • id
  • live_purchase_orders
  • location_type
  • location_type_name
  • mobile
  • name
  • phones
  • purchase_tax_class_name
  • telephone

Was this helpful?

  1. People & Organizations

Venue

The venue object contains information about a venue record.

Venues are saved addresses that you deliver to frequently. When creating an opportunity, you can choose a venue to populate the delivery address quickly.

When a record has a venue associated with it, you may access venue objects. This is handy for printing contact information or linked venue contacts.

Members

Contacts, organizations, vehicles, venues, and users are all known as members in the database. Members have some shared attributes, along with attributes that are specific to that particular member type.

When you're checking a list of members, you can use the type object to determine what type of member you're working with.

For example, the participants object against an opportunity returns participant objects for any members who are participants on the opportunity. To print only venues:

<ul>
  {% for participant in order.participants %}
    {% if participant.type == "Venue" %}
      <li>{{ participant.name }}</li>
    {% endif %}
  {% endfor %}
</ul>

Document layouts

The venue object can be accessed in document layouts created against the following modules:

Member

From a venue record:

{{ member.name }}

Opportunity

Where a venue is set against an opportunity:

{{ venue.name }}

To print venues that are are bookable resources for service items:

{% for item in order.services %}
  {% if item.is_item? %}
    {% for asset in item.assets %}
      {% if asset.is_resource_stock? %}
        {% if asset.resource.type == "Vehicle" %}
          {{ asset.resource.name }}
        {% endif %}
      {% endif %}
    {% endfor %}
  {% endif %}
{% endfor %}

Invoice

Where a venue is set against an invoice:

{{ venue.name }}

Purchase order

Where a venue is set against a purchase order:

{{ venue.name }}

Project

Where a venue is set against a project:

{{ venue.name }}

Discussion templates

The venue object can be accessed in discussion templates created against the following modules:

Member

From a venue record:

{{ venue.name }}

Opportunity

Where a venue is set against an opportunity:

{{ venue.name }}

To print venues that are are bookable resources for service items:

{% for item in opportunity.services %}
  {% if item.is_item? %}
    {% for asset in item.assets %}
      {% if asset.is_resource_stock? %}
        {% if asset.resource.type == "Vehicle" %}
          {{ asset.resource.name }}
        {% endif %}
      {% endif %}
    {% endfor %}
  {% endif %}
{% endfor %}

Invoice

Where a venue is set against an invoice:

{{ venue.name }}

Purchase order

Where a venue is set against a purchase order:

{{ venue.name }}

Project

Where a venue is set against a project:

{{ venue.name }}

activities

Input

{% for activity in member.activities %}
  {{ activity.subject }}
{% endif %}

Output

Call to follow up

address

Returns a venue's primary address.

Input

{{ member.address }}

Output

882 Broderick Flats Lake Erlingchester MA 67553-4548

address_detail

Returns address objects for a venue's primary address.

Input

{{ member.address_detail.state }}

Output

MA

attachments

Returns attachment objects for attachments stored against a venue.

Input

{% for attachment in member.attachments %}
  {{ attachment.attachment_url }}
{% endfor %}

Output

https://s3.amazonaws.com/current-rms/f7b92d60-1421-0132-8004-0401207f6801/attachments/473/original/Ann_Veal.jpg

description

Returns a venue's description.

Input

{{ member.description }}

Output

I mean it's one banana Michael. What could it cost, $10?

email

Returns the first work email address stored against a venue.

Input

{{ member.email }}

Output

dennis@wolfcola.com

emails

Returns email objects for email addresses stored against a venue.

Input

{% for email in member.emails %}
  {{ email.address }}
{% endfor %}

Output

help@current-rms.com

icon_url

Returns a URL pointing at the venue's picture. The full size image is returned.

Input

{{ member.icon_url }}

Output

https://s3.amazonaws.com/cobra-4934606a-294f-4fc2-bca1-2fd55ba5019c/icons/449/original/abigail.jpeg

image_attachments

Returns attachment objects for attachments stored against a venue. Only returns those that have a file type of image.

Input

{% for attachment in member.attachments %}
  {{ attachment.attachment_url }}
{% endfor %}

Output

https://s3.amazonaws.com/current-rms/f7b92d60-1421-0132-8004-0401207f6801/attachments/473/original/Ann_Veal.jpg

id

Returns a venue ID.

The ID is an internal reference for a record. It's not exposed in our web interface.

Input

{{ member.id }}

Output

10

live_purchase_orders

Returns purchase order objects for purchase orders against a venue. Only live purchase orders are returned.

Input

<ul>
  {% for purchase_order in member.live_purchase_orders %}
    <li>{{ purchase_order.name }}</li>
  {% endfor %}
</ul> 

Output

• Sub-contract service

location_type

Returns a venue's location type ID.

Type

Location type

0

Internal

1

External

Input

{{ member.location_type }}

Output

0

location_type_name

Returns a venue's location type name.

  • Internal

  • External

Input

{{ member.location_type_name }}

Output

Internal

mobile

Returns a venue's cell phone number. The first telephone number with the type “cell” or “mobile” is returned.

Input

{{ member.mobile }}

Output

(756) 555 1939

name

Returns a venue's name.

Input

{{ member.name }}

Output

Paddy's Pub

phones

Returns telephone objects for telephone numbers stored against a venue.

Input

{% for telephone in member.phones %}
  {{ telephone.number }}
{% endfor %}

Output

(636) 555 0113

purchase_tax_class_name

Returns the purchase tax class name against a venue.

Input

{{ member.purchase_tax_class_name }}

Output

Default

telephone

Returns a venue's telephone. The first telephone number with the type “work” is returned.

Input

{{ member.telephone }}

Output

(636) 555 0113
PreviousVehicleNextProduct

Last updated 4 years ago

Was this helpful?

Returns for the activities relating to a venue.

activity objects
Activity
Address detail
Attachments
Emails
Attachments
Phones