# Shipments with an arrival date different from the departure date

**URL:** <https://discuss.tryton.org/t/shipments-with-an-arrival-date-different-from-the-departure-date/4981>\
**Category:** User\
**Created:** [February 1, 2022, 1:21pm UTC](https://discuss.tryton.org/t/shipments-with-an-arrival-date-different-from-the-departure-date/4981 "2022-02-01T13:21:43Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincenzo](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/vincenzo/32/847_2.png) [@Vincenzo](https://discuss.tryton.org/u/Vincenzo)\
**Post date:** [February 1, 2022, 1:21pm UTC](https://discuss.tryton.org/t/shipments-with-an-arrival-date-different-from-the-departure-date/4981/1 "2022-02-01T13:21:43Z")

</div>

How could you manage the shipment of products that, for example, depart from warehouse A in January and arrive in warehouse B in March?  
How to manage the stock of the departure and destination warehouse? Can the Transit deposit be used? as?

Thank you

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [February 1, 2022, 1:51pm UTC](https://discuss.tryton.org/t/shipments-with-an-arrival-date-different-from-the-departure-date/4981/2 "2022-02-01T13:51:11Z")

</div>

See the Stock Location Lead Time tip in [https://docs.tryton.org/projects/modules-stock/en/latest/usage/shipment.html#moving-stock-within-your-company](https://docs.tryton.org/projects/modules-stock/en/latest/usage/shipment.html#moving-stock-within-your-company)

---

<div class="post-metadata">

**Author:** ![Vincenzo](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/vincenzo/32/847_2.png) [@Vincenzo](https://discuss.tryton.org/u/Vincenzo)\
**Post date:** [February 1, 2022, 8:01pm UTC](https://discuss.tryton.org/t/shipments-with-an-arrival-date-different-from-the-departure-date/4981/3 "2022-02-01T20:01:23Z")

</div>

> [@ced](#):
>
> Stock Location Lead Time

Hi Ced, thank you.  
I have read the topic, but I cannot apply it …  
In “Stock Location Lead Time” you specify the shipping times between Warehouses, but in the internal shipment you can only choose location storage (not warehouses) …

Case study:  
I ship a product from warehouse A on 02/20/2022 that will arrive at warehouse B on 03/19/2022.  
I would like to create an internal shipment on 02/20/2022 that has stock moves on different dates.  
I would like to use “Transit” location so that:

- stock move 1 on 02/20/2022 that move the product from A location to Transit
- stock move 2 on 03/19/2022 that move the product from the Transit to the B location

 ![Schermata 2022-02-01 alle 21.06.00](https://discuss-cdn.tryton.org/uploads/default/original/2X/2/2522f2b42ffd1dd50aa65fa0660a71f504748af2.png)

On the dates between 02/20/2022 and 03/19/2022 the product must be in the Transit location because it is not physically present in location A and is not physically present in location B.

It is feasible?

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [February 2, 2022, 12:31am UTC](https://discuss.tryton.org/t/shipments-with-an-arrival-date-different-from-the-departure-date/4981/4 "2022-02-02T00:31:08Z")

</div>

> [@Vincenzo](#):
>
> In “Stock Location Lead Time” you specify the shipping times between Warehouses, but in the internal shipment you can only choose location storage (not warehouses) …

Yes but it takes care of the warehouses in which the locations are.

> [@Vincenzo](#):
>
> It is feasible?

Yes define a lead time between the two warehouses.

---

<div class="post-metadata">

**Author:** ![Vincenzo](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/vincenzo/32/847_2.png) [@Vincenzo](https://discuss.tryton.org/u/Vincenzo)\
**Post date:** [February 2, 2022, 8:18am UTC](https://discuss.tryton.org/t/shipments-with-an-arrival-date-different-from-the-departure-date/4981/5 "2022-02-02T08:18:45Z")

</div>

From the tests performed I do not get the desired result …

I entered a new record in LOCATION LEAD TIME:

 ![Schermata 2022-02-02 alle 08.47.27](https://discuss-cdn.tryton.org/uploads/default/original/2X/9/9fb4bfef37ceef84c33a1cde89bdde068af4a1e3.png)

I created an INTERNAL SHIPMENT with the following data:

 ![Schermata 2022-02-02 alle 09.08.17](https://discuss-cdn.tryton.org/uploads/default/original/2X/d/d5bd5027bfc5cee08a1564ecb1138b796395128b.png)

The moves generated were the following:

 ![Schermata 2022-02-02 alle 09.18.09](https://discuss-cdn.tryton.org/uploads/default/original/2X/b/bcd9fbed6290cb3a7454669abb9e9812fac3f62f.png)

The two moves both have effective\_date 2022-02-19.

I expected the “Storage Zone → Transit” move to have effective\_date 2022-02-02 and the “Transit → Storage Zone 2” move effective\_date 2022-02-09

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [February 2, 2022, 9:04am UTC](https://discuss.tryton.org/t/shipments-with-an-arrival-date-different-from-the-departure-date/4981/6 "2022-02-02T09:04:19Z")

</div>

> [@Vincenzo](#):
>
> The two moves both have effective\_date 2022-02-19.

Because you make them done the same day.

---

<div class="post-metadata">

**Author:** ![Vincenzo](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/vincenzo/32/847_2.png) [@Vincenzo](https://discuss.tryton.org/u/Vincenzo)\
**Post date:** [February 2, 2022, 9:23am UTC](https://discuss.tryton.org/t/shipments-with-an-arrival-date-different-from-the-departure-date/4981/7 "2022-02-02T09:23:25Z")

</div>

I’ll do some tests on different days.  
Is the setup dates in Internal shipment correct?

However I don’t understand why the first move “Storage Zone → Transit” has effective\_date 2022-02-09 (should be 2002-02-02)

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [February 2, 2022, 6:34pm UTC](https://discuss.tryton.org/t/shipments-with-an-arrival-date-different-from-the-departure-date/4981/8 "2022-02-02T18:34:46Z")

</div>

I do not think it is possible to help you without an exact description of what you did.  
(And screenshots are pointless, we need textual description of the data input.)

---

<div class="post-metadata">

**Author:** ![Vincenzo](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/vincenzo/32/847_2.png) [@Vincenzo](https://discuss.tryton.org/u/Vincenzo)\
**Post date:** [March 25, 2022, 8:06am UTC](https://discuss.tryton.org/t/shipments-with-an-arrival-date-different-from-the-departure-date/4981/9 "2022-03-25T08:06:26Z")

</div>

Hi, I did some tests that I report below:

**Premise:**  
The warehouses I use have _the same storage location_ for the input, output and storage locations.

Moving products from Warehouse “A” to Warehouse “B” can take up to 1 week; I set, in Location Lead Times, between Warehouse “A” and Warehouse “B” 1Week.

Yesterday (2022-03-24) I created two internal shipments between warehouse “A” and warehouse “B”. I don’t know how the process using the Transit location works and I’ve used two sets of different dates.

**First Shipment:**

- Planned date: 2022-03-25
- Effective date: 2022-03-25
- Start Planned date: 2022-03-24
- Start Effective Date: 2022-03-24  
left in the **SHIP** state.

**Second Shipment:**

- Planned date: 2022-03-24
- Effective date: 2022-03-24
- Start Planned date: 2022-03-25
- Start Effective Date: 2022-03-25  
left in the **SHIP** state.

Today (2022-03-25) I brought the two internal shipments to DONE status.

The first Shipment has  
**Outgoing Moves:**  
from\_location: Warehouse “A”  
to\_location: Transit  
planned\_date: 2022-03-24  
effective\_date: 2022-03-25  
**Incoming Moves:**  
from\_location: Transit  
to\_location: Warehouse “A”  
planned\_date: 2022-03-25  
effective\_date: 2022-03-25  
In Outgoing moves I expected effective\_date: **2022-03-24** as the products were shipped on 2022-03-24

The second Shipment has  
**Outgoing Moves:**  
from\_location: Warehouse “A”  
to\_location: Transit  
planned\_date: 2022-03-25  
effective\_date: 2022-03-24  
**Incoming Moves:**  
from\_location: Transit  
to\_location: Warehouse “A”  
planned\_date: 2022-03-24  
effective\_date: 2022-03-24  
In Incoming moves I expected effective\_date: **2022-03-25** as the products arrived at their destination on 2022-03-25

Where am I doing wrong???

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [March 25, 2022, 8:42am UTC](https://discuss.tryton.org/t/shipments-with-an-arrival-date-different-from-the-departure-date/4981/10 "2022-03-25T08:42:37Z")

</div>

> [@Vincenzo](#):
>
> I created two internal shipments between warehouse “A” and warehouse “B”

This does not look like that as each of your shipment as the same outgoing from\_location and incoming to\_location.  
Also you should not need to have 2 shipments to transfer between warehouse, a single shipment with the right locations is enough (and will compute the delay according to the lead time).

---

<div class="post-metadata">

**Author:** ![Vincenzo](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/vincenzo/32/847_2.png) [@Vincenzo](https://discuss.tryton.org/u/Vincenzo)\
**Post date:** [March 25, 2022, 9:21am UTC](https://discuss.tryton.org/t/shipments-with-an-arrival-date-different-from-the-departure-date/4981/11 "2022-03-25T09:21:53Z")

</div>

> [@ced](#):
>
> Also you should not need to have 2 shipments to transfer between warehouse, a single shipment with the right locations is enough (and will compute the delay according to the lead time).

I created two different internal shipments because I didn’t know how to set planned planned\_start effective and effective\_start dates (i swapped the dates between date and date\_start)

> [@ced](#):
>
> This does not look like that as each of your shipment as the same outgoing from\_location and incoming to\_location.

sorry, mistakes in copying and pasting:

The first Shipment has  
**Outgoing Moves:**  
from\_location: Warehouse “A”  
to\_location: Transit  
planned\_date: 2022-03-24  
effective\_date: 2022-03-25  
**Incoming Moves:**  
from\_location: Transit  
to\_location: Warehouse “B”  
planned\_date: 2022-03-25  
effective\_date: 2022-03-25  
In Outgoing moves I expected effective\_date: **2022-03-24** as the products were shipped on 2022-03-24

The second Shipment has  
**Outgoing Moves:**  
from\_location: Warehouse “A”  
to\_location: Transit  
planned\_date: 2022-03-25  
effective\_date: 2022-03-24  
**Incoming Moves:**  
from\_location: Transit  
to\_location: Warehouse “B”  
planned\_date: 2022-03-24  
effective\_date: 2022-03-24  
In Incoming moves I expected effective\_date: **2022-03-25** as the products arrived at their destination on 2022-03-25

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [March 25, 2022, 11:21am UTC](https://discuss.tryton.org/t/shipments-with-an-arrival-date-different-from-the-departure-date/4981/12 "2022-03-25T11:21:41Z")

</div>

Indeed the outgoing moves have the wrong effective date set: [Wrong effective date for outgoing move of internal shipment with transit (#11337) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue11337)  
Also it should not be allowed to start before it ends: [The start dates of internal shipment must be before the corresponding dates (#11338) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue11338)

---

<div class="post-metadata">

**Author:** ![Vincenzo](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/vincenzo/32/847_2.png) [@Vincenzo](https://discuss.tryton.org/u/Vincenzo)\
**Post date:** [March 25, 2022, 1:06pm UTC](https://discuss.tryton.org/t/shipments-with-an-arrival-date-different-from-the-departure-date/4981/13 "2022-03-25T13:06:23Z")

</div>

I am using tryton version 5.0.  
Is it a bug to fix?
