Processing schedule edit modal not work correctly

Description

Steps to reproduce

  • Go to Administration -> Processing Schedules

  • Edit the SCH003

    • if it contains periods, create a new one

  • Add a period (name: 1, description: 1, start_date: 01/04/2018, end_date: 02/04/2018)

    • you should see modal with the "Do you want to add the 1 Processing Period?" message

  • Add another period (name: 2, description: 2, start_date: 03/04/2018, end_date: 04/04/2018)

    • the modal is under the edit modal

  • Click again on the Add button

    • you should see modal with the "Do you want to add the 2 Processing Period?" message

  • The start date is 03/04/2018 even if there is a period with end date: 04/04/2018

  • try to add another period (name: 3, description: 3, start_date: 03/04/2018, end_date: 06/04/2018)

    • the modal is under the edit modal

  • Click again on the Add button

    • you should see modal with the "Do you want to add the 3 Processing Period?" message

  • error: "Start date should be one day after last added end date"

Acceptance criteria

  • it should be possible to add periods

  • the start date should be one day after the end date of the last period in the schedule

  • the accept modal should be above the edit modal

Environment

None

Status

Assignee

Nikodem Graczewski

Reporter

Łukasz Lewczyński

Labels

Story Points

3

Time tracking

24h

Components

Sprint

None

Fix versions

Affects versions

Priority

Blocker
Configure