Issues with error messages on the Stock Adjustments screen

Description

During the execution of OLMIS-2914, I noticed issues with error messages on the "Adjustments" screen.

1. According to the test case, after clicking on a table field with no data entered, and then, tabbing or clicking on another element in the same row, no error message should appear for the row. Yet on the "Adjustments" screen, an error shows in pagination after clicking on the "Quantity" field without any data and moving to another field.

2. Also, after clicking or tabbing outside the required table field without any data, an error message should occur. But in such a situation, the "Quantity" field doesn't get marked as required - the exclamation mark doesn't appear.

Reproduction steps for #1

1. Log in as srmanager2.
2. Go to Stock Management > Adjustments.
3. Click the "Make Adjustments" button next to Family Planning.
4. Add any product, e.g. Levora.
5. Click on the "Quantity" field.
6. Tab to the "Date" field.
7. The pagination changes color to red.

Reproduction steps for #2

1. Log in as srmanager2.
2. Go to Stock Management > Adjustments.
3. Click the "Make Adjustments" button next to Family Planning.
4. Add any product, e.g. Levora.
5. Click on the "Quantity" field.
6. Click outside the field.
7. The pagination changes color to red but the exclamation mark doesn't appear in the "Quantity" field.

Acceptance Criteria

  • The error behavior on this screen should be consistent and it should match the behavior of the product grid on the requisition view screen.

Environment

None

Assignee

Nikodem Graczewski

Reporter

Joanna Bebak

Labels

Story Points

5

Time tracking

24h

Components

Sprint

None

Fix versions

Affects versions

Priority

Critical
Configure