Incorrect calculation of Stock on Hand

Description

Trying to reproduce in Core, I noticed that a similar situation with a wrong SoH value occurs when we approve requisition April2017 30/04/2017 Comfort Health Clinic/Family Planning.

Reproduction steps:

  1. Log in and go to Requisitions Create/Authorize.

  2. Select Comfort Health Clinic and Family Planning and click Search and Proceed.

  3. In the column "Total losses and adjustment" add reason Lost and Quantity e.g. 10 for Levora.

  4. Submit, Authorize and Approve the requisition.

  5. Go to Stock Management > Stock on Hand and select Comfort Health Clinic/Family Planning.

  6. Click the View button next to the Levora product.

  7. Stock on Hand is different than in the column.

  1. Go to the Stock Management > Issue and Make Issue for Family Planning.

  2. Add Levora(no lot defined), fill in the required fields and quantity 100.

  3. Click the Submit button.

  4. An error has occurred that the stock on hand will be below zero.

NOTE:
It was verified on period 04/2017 which is already initiated, and Stock on Hand on the product grid is 45, different than in stock card 90.

Expected results:

  • Regardless of the value on the product grid, Stock on Hand should calculate correctly.

When testing this ticket, check whether this issue still occurs: .

Environment

None

Assignee

Paulina Buzderewicz

Reporter

Joanna Szymańska

Labels

Story Points

8

Time tracking

40h

Components

Sprint

None

Fix versions

Priority

Blocker
Configure