# Synchronizing Events and Deductions

It is now possible to synchronize [events](https://docs.dataloy.com/release-8.19/voyage-management-system/step-by-step-guides/operations/laytime-calculations/maintain-laytime-calculation/manage-cargo-ports/statement-of-facts) and deductions[ (not to counts) ](https://docs.dataloy.com/release-8.19/voyage-management-system/step-by-step-guides/operations/laytime-calculations/maintain-laytime-calculation/manage-cargo-ports/timesheet)between a [relet](#relet-cargo), [internal](#internal-cargo), and the corresponding [spot](#spot-cargo) cargo.

This reduces the manual effort needed when [reletting a cargo](https://docs.dataloy.com/release-8.19/voyage-management-system/cargoes/maintain-cargoes/cargo-drawer-actions/relet-cargoes#relet-a-cargo) since you no longer have to copy the events and deductions manually.

**Functionality Availability Criteria:**

* Minimum of two Laytime Calculations required.
* Cargo ports must belong to the same port call but be associated with different cargoes.
* Cargo types should differ, categorized as SPOT, Relet, or Internal.

## How It Works

When synchronizing the relet, internal, or spot cargo, all[ laytime events](https://docs.dataloy.com/release-8.19/voyage-management-system/step-by-step-guides/operations/laytime-calculations/maintain-laytime-calculation/manage-cargo-ports/statement-of-facts), as well as the ["not to count"](https://docs.dataloy.com/release-8.19/voyage-management-system/step-by-step-guides/operations/laytime-calculations/maintain-laytime-calculation/manage-cargo-ports/timesheet) events, will be copied from the corresponding cargo.

For example, if you click 🔄 '*Synchronize Events & Deductions*' on a SPOT (ref. figure 2), all events from the Relet cargo (ref. figure 1) will be copied to the SPOT (ref. figure 3).

<div align="left"><figure><img src="https://content.gitbook.com/content/3UIWnAZbr912u8oC0K5A/blobs/VxyPr5W2LGxsc4gYEhix/image.png" alt="" width="375"><figcaption><p>Figure 1: Relet cargo</p></figcaption></figure></div>

<figure><img src="https://content.gitbook.com/content/3UIWnAZbr912u8oC0K5A/blobs/2fxTL4aug5mozqCUFap1/image.png" alt="" width="563"><figcaption><p>Figure 2: The Spot Cargo we are going to sync</p></figcaption></figure>

<div align="right"><figure><img src="https://content.gitbook.com/content/3UIWnAZbr912u8oC0K5A/blobs/Q19QrOxKdstSKy3hTAfc/image.png" alt="" width="375"><figcaption><p>Figure 3: The Results of Synchronizing</p></figcaption></figure></div>

## Synchronizing Events and Deductions

To synchronize a relet with its corresponding spot cargo, follow these steps:

1. Open the [Related ](https://docs.dataloy.com/release-8.19/voyage-management-system/step-by-step-guides/voyages/maintain-voyages/related)tab in the Voyage Drawer.
2. Expand the Laytime Calculations to access the Cargo Port Panel List.
3. In the Cargo Port Panel List, a *Synchronize Events and Deductions* button will be available for all relet, internal and corresponding spot cargo ports.

To make it easier to identify which cargoes are relet and connected to a spot cargo, a **chip** has been added to the section header. See the figures below.

{% tabs %}
{% tab title="Relet Cargo" %}

<figure><img src="https://content.gitbook.com/content/3UIWnAZbr912u8oC0K5A/blobs/AQUyNW5ACHO3EQaa9dnB/image.png" alt=""><figcaption><p>Figure 4: Corresponding Relet Cargo</p></figcaption></figure>
{% endtab %}

{% tab title="Spot Cargo" %}

<figure><img src="https://content.gitbook.com/content/3UIWnAZbr912u8oC0K5A/blobs/rqK7i5msQdT878aPy2JV/image.png" alt=""><figcaption><p>Figure 5: Corresponding Spot Cargo</p></figcaption></figure>
{% endtab %}

{% tab title="Internal Cargo" %}

<figure><img src="https://content.gitbook.com/content/3UIWnAZbr912u8oC0K5A/blobs/YFVCuf8VlJ3PP6iFzDqd/image.png" alt=""><figcaption><p>Figure 6: Corresponding Internal Relet Cargo</p></figcaption></figure>
{% endtab %}
{% endtabs %}

{% hint style="warning" %}
When copying synchronizing the events and deductions, existing events and deductions ***will be overwritten***!
{% endhint %}

To prevent accidental overwrites, a confirmation modal will appear with a brief explanation. You must confirm your choice before synchronization. See Figure 7.

*If there is only one cargo port to synchronize from, it will be preselected. If multiple cargo ports are available, a dropdown menu will appear, allowing you to choose which cargo to copy from.*

{% tabs fullWidth="false" %}
{% tab title="Step 1" %}

<figure><img src="https://content.gitbook.com/content/3UIWnAZbr912u8oC0K5A/blobs/IWKEcZUJxBmuZsa27aAD/image.png" alt=""><figcaption><p>Figure 7. Confirm-modal if there are multiple cargoes to copy from</p></figcaption></figure>
{% endtab %}

{% tab title="Step 2" %}

<figure><img src="https://content.gitbook.com/content/3UIWnAZbr912u8oC0K5A/blobs/dZgBObcLrDJDk1HpUCBF/image.png" alt=""><figcaption><p>Figure 8. Select Cargo</p></figcaption></figure>
{% endtab %}

{% tab title="Step 3" %}

<figure><img src="https://content.gitbook.com/content/3UIWnAZbr912u8oC0K5A/blobs/05YYVZueCxC3MRLTh1cz/image.png" alt=""><figcaption><p>Figure 9. Ready to copy from the selected Relet Cargo</p></figcaption></figure>
{% endtab %}
{% endtabs %}

## Deletion of Cargo

Deleting either the relet or its connected spot cargo does not affect the other. Synchronization only occurs when you manually click the button and confirm the action.
