--- title: "Sum loading aid (Shipment)" slug: "shp-shipment-calculate-loading-aid-summary-actor" updated: 2026-04-02T08:14:24Z published: 2026-04-02T08:14:24Z canonical: "docs.lobstersoftware.com/shp-shipment-calculate-loading-aid-summary-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. # Sum loading aid (Shipment) *See also:* [Sum loading aid (Manifest)](/v1/docs/en/mfst-manifest-calculate-loading-aid-summary-actor), [Loading aids](/v1/docs/en/base-loading-aid) > [!NOTE] > Event action – Abstract > > **Purpose:** Totals the quantities for one or all [Loading aids](/v1/docs/en/base-loading-aid) types in a shipment and writes the sum(s) to loading equipment attributes in the shipment header. All explicit quantities for [Loading aids](/v1/docs/en/base-loading-aid) at line item level of the shipment are added together with the number of *loading aid* *definitions* for the same [Loading aids](/v1/docs/en/base-loading-aid) type in the shipment header. > > > [!TIP] > > Tooltip > > > > - **Usage:** The event action must be executed with a shipment as the *reference object*. The calculation takes into account either a specific [Loading aids](/v1/docs/en/base-loading-aid) (see **Type** parameter) or all [Loading aids](/v1/docs/en/base-loading-aid) types that occur in the shipment. > > - **Parameter:** The *optional* **Type** parameter restricts the evaluation to a *specific* [Loading aids](/v1/docs/en/base-loading-aid). By default (without a selection), the loading aid sum attributes are updated for all [Loading aids](/v1/docs/en/base-loading-aid) found in the shipments. > > - **Output:** Updated or newly added [Loading aids](/v1/docs/en/base-loading-aid) sum attributes in the shipment header. > > - **WARNING:** If the calculation is performed across the board for all [Loading aids](/v1/docs/en/base-loading-aid), (without selection for type), then existing values in [Loading aids](/v1/docs/en/base-loading-aid) sum attributes for [Loading aids](/v1/docs/en/base-loading-aid) that do not (no longer) occur in the shipment are not automatically deleted. ![images/download/attachments/177912678/image-2024-9-23_8-47-55-version-1-modificationdate-1727074075121-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-9-23_8-47-55-version-1-modificationdate-1727074075121-api-v2.png) The event action [Sum loading aid (Shipment)](/v1/docs/en/shp-shipment-calculate-loading-aid-summary-actor) totals the quantity for one or all [Loading aids](/v1/docs/en/base-loading-aid) types within in the items of a *reference object* of the shipment type (see [Shipments](/v1/docs/en/shp-shipment)). Here, all explicit specifications for [Loading aids](/v1/docs/en/base-loading-aid) quantities in all item levels of the shipment are added together with the number of loading aid definitions for the same loading aid type. The total sum per [Loading aids](/v1/docs/en/base-loading-aid) type is written to the corresponding [Loading aids](/v1/docs/en/base-loading-aid) sum attribute in the shipment header. There is a corresponding event action for [Manifests](/v1/docs/en/mfst-manifest) ([Sum loading aid (Manifest)](/v1/docs/en/mfst-manifest-calculate-loading-aid-summary-actor)), which, however, refers exclusively to the [Loading aids](/v1/docs/en/base-loading-aid) quantities of the contained [Shipments](/v1/docs/en/shp-shipment). **NOTE:** For [Manifests](/v1/docs/en/mfst-manifest) – in contrast to [Shipments](/v1/docs/en/shp-shipment) – there is no possibility to maintain *custom* loading aid definitions. ## Configuration ![images/download/attachments/177912678/image-2024-9-23_8-48-56-version-1-modificationdate-1727074135463-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-9-23_8-48-56-version-1-modificationdate-1727074135463-api-v2.png) The event action [Sum loading aid (Shipment)](/v1/docs/en/shp-shipment-calculate-loading-aid-summary-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. The *optional* **Type** parameter can be used to limit the evaluation to a *specific* [Loading aids](/v1/docs/en/base-loading-aid). - Without any specification of **Type**, all [Loading aids](/v1/docs/en/base-loading-aid) types that occur in the shipment items are totaled together. **IMPORTANT:** If no **Type** is specified, the event action updates only the sum attributes of the [Loading aids](/v1/docs/en/base-loading-aid) types that are currently in use. If sum values were calculated in previous calculations for types that currently no longer appear in any of the shipment items, these values are retained unchanged. If necessary, they must be explicitly reset or deleted. ## Example In an input form for [Shipments](/v1/docs/en/shp-shipment), the sum attributes for each [Loading aids](/v1/docs/en/base-loading-aid) are updated by clicking on a [Button](/v1/docs/en/fre-button-vo) (via a [Custom action event](/v1/docs/en/core-custom-action-events)). At the latest, the same calculation is triggered automatically when the shipment is saved. Configuration: | - 'Create' and 'Modify' (see [Common action event](/v1/docs/en/core-common-action-event)) are selected as **Triggering** **events**, so that the update of the sum attributes takes place with each 'Save'. In addition, the calculation is triggered on request via a [Custom action event](/v1/docs/en/core-custom-action-events) ('Calculate now'). --- - The **Validating rule** uses [Check type](/v1/docs/en/core-check-type-rule) to ensure that the **Actions on passed rule** are executed only in the context of a shipment. --- The **Actions on passed rule** are configured as shown on the right: - Before the calculation of the [Loading aids](/v1/docs/en/base-loading-aid) sum attributes for all existing attributes of this type are deleted by an event action of the [Modify list/Clear](/v1/docs/en/core-modify-collection-actor-clear) type, so that after the recalculation no obsolete data for possibly no longer relevant [Loading aids](/v1/docs/en/base-loading-aid) are contained in the header of the shipment (see 'Important' above). The list is determined by an [All attributes of one type](/v1/docs/en/core-attributes-resolver). - Then the event action [Sum loading aid (Shipment)](/v1/docs/en/shp-shipment-calculate-loading-aid-summary-actor) is executed without restrictions for the **Type**, so that a total is calculated for each [Loading aids](/v1/docs/en/base-loading-aid) type that is in use within the items of the shipment. | ![images/download/attachments/177912678/image-2024-9-23_8-52-37-version-1-modificationdate-1727074356369-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-9-23_8-52-37-version-1-modificationdate-1727074356369-api-v2.png) | | --- | --- | Runtime example: The following example shows an input form for [Shipments](/v1/docs/en/shp-shipment) that contains the **Loading aid summary** per [Type of packaging](/v1/docs/en/base-type-of-packaging) (*configured here*: **EURO-Pallet** and **Box**) in the header level of the shipment. Below, **Loading aid definition (Shipment header)** can be added for the shipment header, each identifying exactly one loading aid via **Type** and **Barcode**. In the **Line item** section, several line items with sub-items can be seen, for each of which the **Quantity** for the [Loading aids](/v1/docs/en/base-loading-aid) **Type** predefined for each item level can be specified. ![images/download/attachments/177912678/image2021-7-29_9-55-51-version-1-modificationdate-1726740580815-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-7-29_9-55-51-version-1-modificationdate-1726740580815-api-v2.png) In the screenshot, the **Loading aid summary** have already been calculated by clicking on the 'Totalize' [Button](/v1/docs/en/fre-button-vo). After removing the subheadings (1.1 and 2.1) for the samples, the shipment is saved. The recalculation triggered by this results in the following image: ![images/download/attachments/177912678/image2021-7-29_9-57-11-version-1-modificationdate-1726740580812-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-7-29_9-57-11-version-1-modificationdate-1726740580812-api-v2.png) **NOTE:** - For the [Loading aids](/v1/docs/en/base-loading-aid) type **Box** no value appears any more, because this loading aid type does not occur in any of the line items any more and because the event handling (see above) deletes all [Loading aids](/v1/docs/en/base-loading-aid) sum attributes before calculation. - Without explicitly resetting (deleting) all [Loading aids](/v1/docs/en/base-loading-aid) sum attributes in event handling, the value 2 would still appear in the **Box** field.