metasfresh / metasfresh-e2e-legacy

metasfresh End-2-End Testing project.
7 stars 1 forks source link

Create new Tour and Tourversion #230

Closed metas-dh closed 5 years ago

metas-dh commented 5 years ago

Test shall include:

https://recordit.co/Xx7s0Nhsfu

Todo for developer (besides coding)

cristinastefan90 commented 5 years ago

Tour - the action of scheduling the product delivery. A customer may have multiple tour versions, one in the winter for example and one in the summer. A tour version is made based on a tour and has a validity: image

For example, if the Weekly checkbox is set, Friday checkbox is set and the preparation time is 1 PM - it means that every Friday at 1 PM, the product is ready to be delivered to the customer. image

In order to specify for which customer this schedule is made, the user has to add a new tour version line in which he will specify the customer, its location and buffer(the time between the delivery is ready to go and the actual time when it gets to him) image

Also, if the user wants to see all the delivery days in which a tour takes place, he can do the following actions: Go to the newly created Tour and GenerateDeliveryDays for a time period image

image

Afterwards, he can check the number of delivery days in DeliveryDays window: image

e.g: if he picked a period between 01/07/2019 - 08/08/2019 with a weekly - every Friday tour - he will have 5 delivery days as there are 5 Fridays in that period.

The delivery dates are closely connected with a sales order. In a sales order we have a Date ordered - the date in which the customer ordered; Date promised - when we said/promised the products will get to him, and the Preparation date- when the products are prepared to be delivered. image

Now,let's take the following scenario:

  1. The delivery days were created between 1st of July and 1st of August
  2. The date ordered is 07/06/2019 - this means that the client put the order on 07/06/2019
  3. The Date promised is set on - 07/27/2019 ( that's on a Saturday) => that means that the preparation date will be 07/26/2019 1 PM- as it's the last Friday in which the products can be prepared for delivery. For some reason(timezone issues) - in the screenshot, the day is correct but the time should be 1 PM. image