# Synchronizing Events and Deductions

It is now possible to synchronize [events](https://docs.dataloy.com/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/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/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/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/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/WoySkL2wtBxvxqGI8yWa/blobs/e5v1VYfcGPN8bcqh70zz/image.png" alt="" width="375"><figcaption><p>Figure 1: Relet cargo</p></figcaption></figure></div>

<figure><img src="https://content.gitbook.com/content/WoySkL2wtBxvxqGI8yWa/blobs/yn1zJ2j0GpLekQG8tMq6/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/WoySkL2wtBxvxqGI8yWa/blobs/moP7KGHbFAtXjyJkm90p/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 Laytime Calculations tab in the Voyage Drawer to choose the desired calculation.
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 correspondingd 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/WoySkL2wtBxvxqGI8yWa/blobs/yIleDSeuv2eCaNezpFfu/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/WoySkL2wtBxvxqGI8yWa/blobs/DGn5VlurPnOg5QBctHEc/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/WoySkL2wtBxvxqGI8yWa/blobs/VU0FTRn2RO3SheNukdqp/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/WoySkL2wtBxvxqGI8yWa/blobs/wcrR2SfJBW6JGzVeRjyx/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/WoySkL2wtBxvxqGI8yWa/blobs/UHf4RPdwQOLu4KAv7CNw/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/WoySkL2wtBxvxqGI8yWa/blobs/YVL93x29wRWcKCk764K7/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.
