Errors show on several Stock screens too early

Description

I noticed an issue during regression tests - errors on the "Adjustments", "Receive" and "Issue" screens show up immediately after tabbing to or clicking on another element in the same row. According to the OLMIS-2914, it shouldn't be the case. The issue occurs on both browsers.

Reproduction steps:

  1. Log into the application as administrator.

  2. Go to Stock Management > Adjustments.

  3. Start making adjustments for any program (e.g. Family Planning).

  4. Add e.g. Levora and no lot defined to the table.

  5. Click the "Reason" select, tab to/click on the "Quantity" field and click on/tab to the "Date" field.

  6. Errors show in the "Quantity" field and in the pagination after going to the "Date" field, which shouldn't happen.

  7. Go to Stock Management > Issue.

  8. Start making issue for any program (e.g. Family Planning).

  9. Add e.g. Levora and no lot defined to the table.

  10. Click the "Issue To" select, tab to/click on the "Quantity" field and click on/tab to the "Date" field.

  11. Errors show in the "Quantity" field and in the pagination after going to the "Date" field, which shouldn't happen.

  12. Go to Stock Management > Receive.

  13. Start making receive for any program (e.g. Family Planning).

  14. Add e.g. Levora and no lot defined to the table.

  15. Click the "Received From" select, tab to/click on the "Quantity" field and click on/tab to the "Date" field.

  16. Errors show in the "Quantity" field and in the pagination after going to the "Date" field, which shouldn't happen.

  17. Go to Stock Management > Unpack.

  18. Start making adjustments for any program (e.g. Family Planning).

  19. Add e.g. Levora and no lot defined to the table.

  20. Click on the "Quantity" field and click on/tab to the "Date" field.

  21. Errors show in the "Quantity" field and in the pagination after going to the "Date" field, which shouldn't happen.

Expected behavior:

  • The error in the "Quantity" field should appear only after clicking outside it or after trying to submit the form;

  • The error in the pagination should appear only after trying to submit the form.

Environment

None

Assignee

Unassigned

Reporter

Joanna Bebak

Epic Link

Components

Affects versions

Priority

Major
Configure