Some adjustments are not displayed correctly in Stock card print

Description

I noticed an issue occurring on both browsers when I was testing OLMIS-6728. When using the "Total losses and adjustments" field in requisitions or when using the "Reasons" field when making Physical Inventory, after requisition approval / inventory submission, the adjustments are not displayed correctly in printed product's stock card. The calculations, however, are correct. Please look at the screenshots.

Reproduction steps for requisitions:

  1. Log in as administrator 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 adjustments", add reason Lost and Quantity 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 (No lot defined) product.

  7. Click the Print button.

  8. The adjustments related to the requisition (Lost, Damage, Transfer In, Beginning Balance Insufficiency, Receipts, Consumed) are not visible in print.

Reproduction steps for Stock Management:

  1. Submit a Physical Inventory for Comfort Health Clinic and Family Planning. The Current Stock of all products has to be 7046, the submission date 01/12/2019.

  2. Submit a Physical Inventory for Comfort Health Clinic and Family Planning. The Current Stock of all products has to be 150. Add the Reason "Lost" with quantity 6896 for all products. The inventory's submission date: 18/12/2019. --> Up until now, everything is displayed correctly in Levora's (No lot defined) stock card print.

  3. Go to Stock Management > Receive. Make a Receive for Family Planning and Levora No lot defined. Date: 02/12/2019, Quantity: 1050.

  4. After the above step, the value of the "Adjustment" field in stock card print for Levora (No lot defined) for 18/12/2019 becomes incorrect.

Expected results:

  • All adjustments should be displayed correctly in stock card print.

Environment

None

Assignee

Unassigned

Reporter

Joanna Bebak

Labels

None

Epic Link

Components

Priority

Major
Configure