Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Test Case #:1156

Test Case Name: RequisitionLineCalculationService initiate beginning balance gets wrong previous period

System: OpenLMIS

Subsystem: blue

Test case designed by: Anna Czyrko

Design Date: 09.11.2016

Short description

The initateBeginningBalance method in this service gets a list of periods earlier than the requisition's period start date (previous periods), takes the first one in the list, and assumes it is the most recent previous period. This assumption seems to be incorrect, as the external call orders the previous periods by start date ascending. So the first one in the list would be least recent previous period.

Acceptance criteria:

  • Refactor the code that gets the previous requisition to use the most recent previous period to determine the previous requisition

Test

  • Create two previous periods with different balances and check requisition uses the correct previous period to initiate a beginning balance

                                                                                                                                                   

Pre – conditions:

                                                                                                                                                                                                                               

Step


Action

Expected system response

Comment

1


             

                                                 

2




3


4


5


6


7


8


9


10


11


  • No labels