Incorrect dates of periods occur in the initiated requisition and in POD

Description

While checking the bugs from the backlog, I noticed that when I initiate a requisition, then the Reporting Period shows incorrect date (e.g. 31/03/2017 - 29/04/2017). Also, incorrect dates show in PODs.
The dates are correct on the Requisitions > Create/Authorize screen (e.g. 01/02/2017 - 28/02/2017 ) and correct period dates already appear after authorization of the requisition.

Reproduction steps:

  1. Log in as e.g. an administrator.

  2. Go to Requisitions > Create/Authorize, select any program and click the "Search" button.

  3. The correct list of periods appears.

  4. Click the "Proceed" button next to the first period (If necessary, delete it because the first period may already be initialized, and then click the "Proceed" button).

  5. The Reporting Period date is incorrect: 31/03/2017 - 29/04/2017.

     

  6. Submit the requisition and open it again.

  7. Now the Reporting Period date is correct: 01/04/2017 - 30/04/2017.

  8. Authorize, approve and convert to order the requisition.

  9. Go to Orders > Manage Proof of Delivery, find the just converted order and click the "Manage" button.

  10. The Reporting Period date is incorrect: 31/03/2017 - 29/04/2017 again.

 

Expected results:

  • Valid periods should be displayed on all screens.

 

Environment

None

Status

Assignee

Jakub Jakubowski

Reporter

Joanna Szymańska

Labels

None

Story Points

2

Time tracking

40h

Epic Link

Components

Sprint

None

Fix versions

Affects versions

3.7

Priority

Major
Configure