--- title: "Calculate attributes down (Shipment)" slug: "shp-calculate-attributes-down-actor" updated: 2026-04-02T08:04:36Z published: 2026-04-02T08:04:36Z canonical: "docs.lobstersoftware.com/shp-calculate-attributes-down-actor" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Calculate attributes down (Shipment) *See also:* [Calculate attributes down](/v1/docs/en/cmn-calculate-attributes-down-actor), [Calculate attributes down (Order)](/v1/docs/en/ord-calculate-attributes-down-actor) > [!NOTE] > Event action – Abstract > > **Purpose:** Multiplies the 'Value' in a shipment in all aggregated numeric attributes of line items of the relevant line item types by the 'General number of packages' to calculate the 'Aggregated value' per attribute. > > > [!TIP] > > Tooltip > > > > - **Usage:** The event action must be executed with a shipment object as a *reference object*. The calculation considers only selected **Line item types** but always all types of aggregated numeric attributes. > > - **Parameter:** The *optional* multiple selection for **Line item types** specifies for which types the calculation should be made. Without any selection, only the [Line item type](/v1/docs/en/base-line-item-type) 'Default' (`DEFAULT`) will be taken into account. > > - **Output:** Updates for the 'Aggregate value' field in all aggregated numeric attributes of all relevant **Line item types**. > > - **NOTE:** The event action does not automatically calculate the 'Aggregate number of packages' per line item (see the [Calculate aggregate number of packages](/v1/docs/en/cmn-calculate-aggregate-number-of-packages-actor) event action). ![images/download/attachments/177912619/image-2024-9-19_11-19-19-version-1-modificationdate-1726737558414-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-9-19_11-19-19-version-1-modificationdate-1726737558414-api-v2.png) The [Calculate attributes down (Shipment)](/v1/docs/en/shp-calculate-attributes-down-actor) event action executes the following steps for selected **Line item types** (see [Line item type](/v1/docs/en/base-line-item-type)) in a *reference* *object* of the 'Shipment' type (see [Shipments](/v1/docs/en/shp-shipment)): 1. For 'Aggregate numeric attributes' within a relevant line item, the 'value" (`value`) is multiplied by the 'Aggregate number of packages' (`aggregateNumberOfPackages`), which can be determined in advance via the event action [Calculate aggregate number of packages (Shipment)](/v1/docs/en/shp-calculate-aggregate-number-of-packages-actor), if required. 2. The result of the multiplication is stored as an 'Aggregate value' (`aggregateValue`) within the attribute. If the 'value' (`value`) or the 'Aggregate number of packages' (`aggregateNumberOfPackages`) does not contain a value, the 'Aggregate value' (`aggregateValue`) field is deleted. **IMPORTANT:** In contrast to the event action [Calculate aggregate number of packages (Shipment)](/v1/docs/en/shp-calculate-aggregate-number-of-packages-actor), if the **Line item types** parameter does not specify a selection, the calculation does not include *all* line item types, but only the 'default' line item type (`DEFAULT`). Therefore, there is no possibility to parameterize the event action in such a way that it includes 'all' **Line item types** (i.e. also those that may be created in the future). **NOTE:** On the line item level, basically every [Numeric types](/v1/docs/en/base-numeric-value-type) appears as an 'Aggregate numeric attribute'. There is no possibility to distinguish between *extensive* and *intensive* quantities. The [Calculate attributes down (Shipment)](/v1/docs/en/shp-calculate-attributes-down-actor) event action also treats each [Numeric types](/v1/docs/en/base-numeric-value-type) the same: Each 'value' is multiplied by the 'Aggregate number of packages' of the line item. However, scaling the 'value' does not make sense for every [Numeric types](/v1/docs/en/base-numeric-value-type), for example, if the value describes a 'maximum storage temperature', the 'standard lot size' for an item, or a 'minimum shelf life'. In such cases, simply ignore the calculation result in the 'Aggregated value' field and most importantly, do not display it in the form. **NOTE:** Details on the calculation logic and an illustrative runtime example can be found on the page for the entity type [Common business object](/v1/docs/en/orchestration-common-bto): - [Calculate attributes down](/v1/docs/en/cmn-calculate-attributes-down-actor) ## Configuration ![images/download/attachments/177912619/image-2024-9-19_11-17-36-version-1-modificationdate-1726737455547-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-9-19_11-17-36-version-1-modificationdate-1726737455547-api-v2.png) The event action [Calculate attributes down (Shipment)](/v1/docs/en/shp-calculate-attributes-down-actor) expects a 'Shipment' (see [Shipments](/v1/docs/en/shp-shipment)) as the *reference* *object*. In the context of another object type, the event action has no effect without an error occurring at runtime. Multiple selection for **Line item types** can be used to define a positive list for *relevant* **Line item types** (see [Line item type](/v1/docs/en/base-line-item-type)). - If no **Line item types** are selected, only the [Line item type](/v1/docs/en/base-line-item-type) 'Default' (`DEFAULT`) will be taken into account.