JRNI Developer Documentation

The JRNI Developer Hub

Welcome to the JRNI developer hub.

Details of an Item Drop

A Purchase Item is a representation of a single line item in a Purchase Order. This repfresents that price and paid amount of that item and could link to things such as bookings, a booking, a package, a pre-paid booking set or a recurring class

Most commonly this connects to a booking 9which could be a single booking, or for a class could be multiple), and it has two versions that either show all bookings, or only bookings that have NOT been cancelled

Field

Usage / Description

company

{{item.company.
Link to the company object if they belong to an old style single location

property

{{item.booking.
Get the first booking (most purchase items generally have only 1 booking)

bookings

{% for booking in item.bookings %}
Loop around all of the active bookings in the item (if there are multiple)

all_bookings

{% for booking in item.all_bookings %}
Loop around all of the bookings (including cancelled) in the item

prepaid_booking

{{item.prepaid_booking.
Get the prepaid booking if that's what this item is related to

external_purchase

{{item.external_purchase.
Get the external purchase if that's what this item is related to

package

{{item.package.
Get the package if that's what this item is related to

product

{{item.product.
Get the product if that's what this item is related to

Updated 11 months ago

Item


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.