# Organization

Organizations in Current RMS are billing entities. They're customers or vendors that you bill.

You can set an organization as a sub-rent supplier and raise a purchase order for them. You can also invoice an organization.&#x20;

### 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.&#x20;

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

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

### Document layouts

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

#### Member

From an organization record:

```
{{ member.name }}
```

From a contact record:

```
{% for organization in member.organisations %}
  {{ organization.name }}
{% endfor %}
```

#### Opportunity

To print information about the opportunity's related organization:

```
{{ customer.name }}
```

To print organizations that are a participant against an opportunity:&#x20;

```
{% for participant in order.participants %}
  {% if participant.type == "Organization" %}
    {{ participant.name }}
  {% endif %}
{% endfor %}
```

To print organizations that are sub-rent suppliers for opportunity items:

```
{% for item in order.product_assets %}
  {% if asset.sub_rent? %}
    {{ asset.supplier.name }}
  {% endif %}
{% endfor %}
```

To print organizations that are sub-contract suppliers for service bookings:

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

#### Project

To print information about the project's related organization:

```
{{ customer.name }}
```

To print organizations that are a participant against a project:&#x20;

```
{% for participant in project.participants %}
  {% if participant.type == "Organization" %}
    {{ participant.name }}
  {% endif %}
{% endfor %}
```

#### Purchase order

Where the supplier is an organization:

```
{{ supplier.name }}
```

To print organizations against a purchase order's related contact:&#x20;

```
{% for organization in supplier.organisations %}
  {{ organization.name }}
{% endfor %}
```

#### Invoice

To print information about the invoice's related organization:

```
{{ customer.name }}
```

#### Quarantine

To print information about the sub-rent supplier against a quarantine:

```
{{ quarantine.supplier.name }}
```

To print information about the source opportunity's related organization:

```
{{ quarantine.source.customer.name }}
```

To print information about the next opportunity booking's related organization:&#x20;

```
{{ quarantine.next_booking.customer.name }}
```

#### Activity

To print information about organizations that are participants against an activity:

```
{% for participant in activity.participants %}
  {% if participant.type == "Organization" %}
    {{ participant.name }}
  {% endif %}
{% endfor %}
```

### Discussion templates

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

#### Member

From an organization record:

```
{{ organisation.name }}
```

From a contact record:

```
{% for organization in contact.organisations %}
  {{ organization.name }}
{% endfor %}
```

#### Opportunity

To print information about the opportunity's related organization:

```
{{ customer.name }}
```

To print organizations that are a participant against an opportunity:&#x20;

```
{% for participant in opportunity.participants %}
  {% if participant.type == "Organization" %}
    {{ participant.name }}
  {% endif %}
{% endfor %}
```

To print organizations that are sub-rent suppliers for opportunity items:

```
{% for item in opportunity.product_assets %}
  {% if asset.sub_rent? %}
    {{ asset.supplier.name }}
  {% endif %}
{% endfor %}
```

To print organizations that are sub-contract suppliers for service bookings:

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

#### Project

To print information about the project's related organization:

```
{{ customer.name }}
```

To print organizations that are a participant against a project:&#x20;

```
{% for participant in project.participants %}
  {% if participant.type == "Organization" %}
    {{ participant.name }}
  {% endif %}
{% endfor %}
```

#### Purchase order

Where the supplier is an organization:

```
{{ supplier.name }}
```

To print organizations against a purchase order's related contact:&#x20;

```
{% for organization in supplier.organisations %}
  {{ organization.name }}
{% endfor %}
```

#### Invoice

To print information about the invoice's related organization:

```
{{ customer.name }}
```

#### Quarantine

To print information about the sub-rent supplier against a quarantine:

```
{{ quarantine.supplier.name }}
```

To print information about the source opportunity's related organization:

```
{{ quarantine.source.customer.name }}
```

To print information about the next opportunity booking's related organization:&#x20;

```
{{ quarantine.next_booking.customer.name }}
```

## `active_sub_rentals`

Returns opportunity item asset objects for active opportunities where this organization is a sub-rent supplier.

{% content-ref url="../opportunities/opportunity-item-assets" %}
[opportunity-item-assets](https://current-rms.gitbook.io/liquid-syntax/opportunities/opportunity-item-assets)
{% endcontent-ref %}

## `activities`

Returns [activity objects](https://current-rms.gitbook.io/liquid-syntax/-LbblMS9-6hRM3IRplGC/activity/activity) for the activities relating to an organization.

#### Input  <a href="#input" id="input"></a>

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

#### Output  <a href="#ouput" id="ouput"></a>

```
Call to follow up
```

{% content-ref url="../activity" %}
[activity](https://current-rms.gitbook.io/liquid-syntax/activity)
{% endcontent-ref %}

## `address`

Returns the primary address for an organization.

#### Input

```
{{ member.address }}
```

#### Output

```
882 Broderick Flats Lake Erlingchester MA 67553-4548
```

## `address_detail`

Returns address objects for an organization's primary address.

#### Input

```
{{ member.address_detail.state }}
```

#### Output

```
MA
```

{% content-ref url="../general/address" %}
[address](https://current-rms.gitbook.io/liquid-syntax/general/address)
{% endcontent-ref %}

## `attachments`

Returns attachment objects for attachments stored against an organization.

#### Input <a href="#input-2" id="input-2"></a>

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

#### Output <a href="#output-2" id="output-2"></a>

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

{% content-ref url="../general/attachments" %}
[attachments](https://current-rms.gitbook.io/liquid-syntax/general/attachments)
{% endcontent-ref %}

## `contacts`&#x20;

Returns contact objects for linked contacts against an organization.

#### Input

```
{% for contact in member.contacts %}
  {{ contact.name }}
{% endfor %}
```

#### Output

```
Peter Miller
```

{% content-ref url="contact" %}
[contact](https://current-rms.gitbook.io/liquid-syntax/people-and-organizations/contact)
{% endcontent-ref %}

## `description`

Returns the description for an organization.

#### Input

```
{{ member.description }}
```

#### Output

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

## `discount_category_name`&#x20;

Returns the discount category name for an organization.

#### Input

```
{{ member.discount_category_name }}
```

#### Output

```
Charity
```

## `email`&#x20;

Returns the first work email address stored against an organization

#### Input

```
{{ member.email }}
```

#### Output

```
gob@bluthcompany.com
```

## `emails`

Returns email objects for email addresses stored against an organization.

#### Input

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

#### Output

```
help@current-rms.com
```

{% content-ref url="../general/email" %}
[email](https://current-rms.gitbook.io/liquid-syntax/general/email)
{% endcontent-ref %}

## `icon_url`

Returns a URL pointing at the organization'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 an organization. Only returns those that have a file type of image.

#### Input <a href="#input-2" id="input-2"></a>

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

#### Output <a href="#output-2" id="output-2"></a>

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

{% content-ref url="../general/attachments" %}
[attachments](https://current-rms.gitbook.io/liquid-syntax/general/attachments)
{% endcontent-ref %}

## `id`&#x20;

Returns an organization's ID.

{% hint style="info" %}
The ID is an internal reference for a record. It's not exposed in our web interface.
{% endhint %}

#### Input

```
{{ member.id }}
```

#### Output

```
10
```

## `invoice_term_length`&#x20;

Returns the value of the invoice term type. Typically used with `invoice_term_name` to print invoice terms on documents.

![The term length is the number in the “Terms” field.](https://2239757318-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LbbjdG2xM4rvQ6hSbei%2F-MOX0xlY_euusZ3_TBgX%2F-MOXLlNsI_AnXQaN6Nmu%2FTerm%20Length.png?alt=media\&token=91000757-9bca-45af-bc6b-b608265a9ef3)

#### Input

```
{{ member.invoice_term_length }}
```

#### Output

```
30
```

## invoice\_term\_name&#x20;

Returns the invoice term type. Typically used with `invoice_term_length` to print invoice terms on documents.

![The term length is the number in the “Invoice Term Type” field.](https://2239757318-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LbbjdG2xM4rvQ6hSbei%2F-MOX0xlY_euusZ3_TBgX%2F-MOXM9bKa3PyGtXdldPd%2FTerm%20Name.png?alt=media\&token=e7933cb7-bd91-4d9c-9ff4-df3b83282c30)

#### Input

```
{{ member.invoice_term_length }}
```

#### Output

```
days from invoice date
```

## `invoices`&#x20;

Returns invoice objects for invoices against an organization. All invoices and credits are returned.

#### Input

```
<ul>
  {% for invoice in member.invoices %}
    <li>{{ invoice.name }}</li>
  {% endfor %}
</ul> 
```

#### Output

```
• Engagement Dinner
• Wedding
• Baby Shower
• Divorce Party
```

{% content-ref url="../invoices/invoice" %}
[invoice](https://current-rms.gitbook.io/liquid-syntax/invoices/invoice)
{% endcontent-ref %}

## `is_cash?`&#x20;

Returns `true` where the cash customer toggle is set to YES; `false` otherwise.

#### Input

```
{{ member.is_cash? }}
```

#### Output

```
false
```

## `lawful_basis_type_id`&#x20;

Returns the legal basis type ID for an organization.

| Type    | Legal basis type                        |
| ------- | --------------------------------------- |
| `11001` | Legitimate interest - prospect          |
| `11002` | Legitimate interest - existing customer |
| `11003` | Performance of a contract               |
| `11004` | Freely given consent                    |
| `11005` | Employee                                |
| `11006` | Unknown                                 |

#### Input

```
{{ member.lawful_basis_type_id }}
```

#### Output

```
11005
```

## `lawful_basis_type_name`

Returns an organization's legal basis type name.

You may add legal basis types in System Setup > List of Values.

* &#x20;Legitimate interest - prospect
* Legitimate interest - existing customer
* Performance of a contract
* Freely given consent
* Employee
* Unknown

#### Input

```
{{ member.lawful_basis_type_name }}
```

#### Output

```
Employee
```

## `live_invoices`&#x20;

Returns invoice objects for invoices against an organization. Only live invoices and credits are returned, i.e those not voiced, paid, or posted.

#### Input

```
<ul>
  {% for invoice in member.live_invoices %}
    <li>{{ invoice.name }}</li>
  {% endfor %}
</ul> 
```

#### Output

```
• Divorce Party
```

## `live_opportunities`&#x20;

Returns opportunity objects for opportunities against an organization. Only live opportunities are returned, i.e those that are open or active.

#### Input

```
<ul>
  {% for order in member.live_opportunities %}
    <li>{{ order.name }}</li>
  {% endfor %}
</ul> 
```

#### Output

```
• Divorce Party
```

{% content-ref url="../opportunities/opportunity" %}
[opportunity](https://current-rms.gitbook.io/liquid-syntax/opportunities/opportunity)
{% endcontent-ref %}

## `live_purchase_orders`&#x20;

Returns purchase order objects for purchase orders against an organization. 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-rental
• Sub-contract service
```

## `mobile`&#x20;

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

#### Input

```
{{ member.mobile }}
```

#### Output

```
(756) 555 1939
```

## `name`&#x20;

Returns the name of an organization.

#### Input

```
{{ member.name }}
```

#### Output

```
Bluth Company, Inc.
```

## `number`&#x20;

Returns the account number for an organization.

#### Input

```
{{ member.number }}
```

#### Output

```
111-222-333
```

## `on_stop?`&#x20;

Returns `true` if the “On Stop” toggle is set to YES against this customer; `false` otherwise.

#### Input

```
{{ member.on_stop? }}
```

#### Output

```
false
```

## `opportunities`&#x20;

Returns opportunity objects for opportunities against an organization. All opportunities are returned, regardless of state or status.

#### Input

```
<ul>
  {% for order in member.opportunities %}
    <li>{{ order.name }}</li>
  {% endfor %}
</ul> 
```

#### Output

```
• Engagement Dinner
• Wedding
• Baby Shower
• Divorce Party
```

{% content-ref url="../opportunities/opportunity" %}
[opportunity](https://current-rms.gitbook.io/liquid-syntax/opportunities/opportunity)
{% endcontent-ref %}

## `phones`&#x20;

Returns telephone objects for telephone numbers listed against the organization.

#### Input <a href="#input-7" id="input-7"></a>

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

#### Output <a href="#output-7" id="output-7"></a>

```
(636) 555 0113
```

{% content-ref url="../general/telephone" %}
[telephone](https://current-rms.gitbook.io/liquid-syntax/general/telephone)
{% endcontent-ref %}

## `price_category_name`&#x20;

Returns the price category against the organization.

#### Input

```
{{ member.price_category_name }}
```

#### Output

```
Gold
```

## purchase\_orders&#x20;

Returns purchase order objects for purchase orders against an organization. All purchase orders are returned.

#### Input

```markup
<ul>
  {% for purchase_order in member.purchase_orders %}
    <li>{{ purchase_order.name }}</li>
  {% endfor %}
</ul> 
```

#### Output

```
• Sub-rental
• Sub-contract service
```

## `purchase_tax_class_name`

Returns the purchase tax class name against an organization.

#### Input

```
{{ member.purchase_tax_class_name }}
```

#### Output

```
Default
```

## `rating`&#x20;

Returns a number 0-5 for the star rating against an organization. Typically used to print a star rating.&#x20;

#### Input

```markup
Member rating: {{ member.rating }}<br>
{% for i in (1..member.rating) %}
  ⭑
{% endfor %}
```

#### Output

```
Member rating: 4
⭑ ⭑ ⭑ ⭑
```

## `sale_tax_class_name`

Returns the sale tax class name against an organization.

#### Input

```
{{ member.sale_tax_class_name }}
```

#### Output

```
Default
```

## `tax_class_name`

{% hint style="danger" %}
**Depreciated.** Support may be withdrawn in future.
{% endhint %}

See: [`sale_tax_class_name`](#sale_tax_class_name) .

## `tax_number`&#x20;

Returns the tax number against an organization.

#### Input

```
{{ member.tax_number }} 
```

#### Output

```
GB123456
```

## `telephone`

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

#### Input

```
{{ member.telephone }}
```

#### Output

```
(636) 555 0113
```

## `thumbnail_icon_url`&#x20;

Returns a URL pointing at the organization's picture. A thumbnail size image is returned.

#### Input

```
{{ member.thumbnail_icon_url }}
```

#### Output

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

## `transactions`&#x20;

Returns invoice transaction objects for transactions against invoices for an organization.

#### Input

```
{% for transaction in member.transactions %}
  {{ transaction.amount }}<br>
{% endfor %}
```

#### Output

```
100
20
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://current-rms.gitbook.io/liquid-syntax/people-and-organizations/organization.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
