Deactivate button is visible after adding product to physical inventory table

Description

Issue discovered while executing:

Test Case: Physical Inventory: Deactivate Items from Physical Inventory

Execution Date: 03/Mar/2025

Open Execution


Reproduction steps
1. Click the "Start" button next to the "Family Planning" program.
2. Check if the line items are grouped under appropriate product categories. Only active items should be visible by default.
3. In the table only products with Stock on Hand more than "0" should be visible.
If a product with Stock on Hand = 0 is visible, an additional "Deactivate" button should appear next to it.
4. Fill all the Current Stock fields with values from Stock on Hand column and once again go to Stock Management -> Physical Inventory and click on the "Continue" button.
5. Go to Stock Management -> Receive and click the "Make Receive" button for Family planning.
6. Add a Product that has not been added to physical inventory before, fill all required fields and click the "Submit" button.
7. Go to Stock Management -> Issue and click the "Make Issue" button for Family planning.
8. Choose Product selected before in Receive screen, fill all required fields and click the "Submit" button.
9. Go to Stock Management -> Physical Inventory and click the "Start" button next to the "Family Planning" program.
10. Product Added before with SOH = 0 and an additional "Deactivate" button next to it should be visible.
11. Click the "Deactivate" button next to the any Product with SOH = 0.
12. Click the "Cancel" button.
13. Click the "Deactivate" button next to the any Product with SOH = 0.
14. Click the "Deactivate" button once again.
15. Click on the "Filter" button and select checkbox: "include inactive items"
16. Click on the "Filter" button and unselect checkbox: "include inactive items"
17. Click the "Add Product" button.
18. Select any Product that hasn't been on physical inventory list before, fill all required fields and click the "Add item to Physical Inventory" button.

Expected Result:
The newly added Product should be visible on Physical Inventory screen and no additional option for "Deactivate" should be next to it.

Actual Result:
The newly added product is visible in the table but 'Deactivate' button is visible

Probably because of SoH = 0? Is it a bug or wrong expected result?

Attachments

1

Activity

Show:

Artur LebiedzińskiMarch 21, 2025 at 8:44 AM

It’s a bug as Deactivate button should not be displayed once you are adding new product. Instead of having Deactivate we should have a delete option here to delete this product from PI. Currently, it’s not clear what does this button do.

Artur LebiedzińskiMarch 21, 2025 at 7:59 AM

Are we sure it’s a bug? Looks like intentional action

Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Priority

Time Assistant

Created March 19, 2025 at 12:41 PM
Updated March 21, 2025 at 8:44 AM