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
activitiesReturns activity objects for the activities relating to a venue.
Input
{% for activity in member.activities %}
{{ activity.subject }}
{% endif %}Output
Call to follow upaddress
addressReturns a venue's primary address.
Input
{{ member.address }}Output
882 Broderick Flats Lake Erlingchester MA 67553-4548address_detail
address_detailReturns address objects for a venue's primary address.
Input
{{ member.address_detail.state }}Output
MAattachments
attachmentsReturns 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.jpgdescription
descriptionReturns a venue's description.
Input
{{ member.description }}Output
I mean it's one banana Michael. What could it cost, $10?email
emailReturns the first work email address stored against a venue.
Input
{{ member.email }}Output
dennis@wolfcola.comemails
emailsReturns email objects for email addresses stored against a venue.
Input
{% for email in member.emails %}
{{ email.address }}
{% endfor %}Output
help@current-rms.comicon_url
icon_urlReturns 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.jpegimage_attachments
image_attachmentsReturns 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.jpgid
idReturns a venue ID.
Input
{{ member.id }}Output
10live_purchase_orders
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 servicelocation_type
location_type Returns a venue's location type ID.
Type
Location type
0
Internal
1
External
Input
{{ member.location_type }}Output
0location_type_name
location_type_nameReturns a venue's location type name.
Internal
External
Input
{{ member.location_type_name }}Output
Internalmobile
mobileReturns a venue's cell phone number. The first telephone number with the type “cell” or “mobile” is returned.
Input
{{ member.mobile }}Output
(756) 555 1939name
nameReturns a venue's name.
Input
{{ member.name }}Output
Paddy's Pubphones
phonesReturns telephone objects for telephone numbers stored against a venue.
Input
{% for telephone in member.phones %}
{{ telephone.number }}
{% endfor %}Output
(636) 555 0113purchase_tax_class_name
purchase_tax_class_nameReturns the purchase tax class name against a venue.
Input
{{ member.purchase_tax_class_name }}Output
Defaulttelephone
telephoneReturns a venue's telephone. The first telephone number with the type “work” is returned.
Input
{{ member.telephone }}Output
(636) 555 0113Last updated
Was this helpful?