Stocktake: Pack Size Is 0 For Items With No Stock, Default Pack Size Ignored

by ADMIN 77 views

What Went Wrong?

In this stocktake scenario, a critical issue arose when generating a stocktake from the master list. A placeholder line for an item with no stock was created, displaying a pack size of 0. However, when the pack size was updated to 25 and saved, the system saved the pack size as 1, ignoring the default pack size of 50 set for the item. This issue seems to be specific to placeholder lines, as adding a new item or batch to an existing item resulted in a pack size of 1, regardless of the default pack size.

Screenshots

Placeholder Line with Pack Size 0

Placeholder Line with Pack Size 0

Default Pack Size of 50 Ignored

Default Pack Size of 50 Ignored

Pack Size 1 for Added Items

Pack Size 1 for Added Items

Pack Size 1 for Added Batches

Pack Size 1 for Added Batches

Pack Size to 1 Store Pref Not Enabled

Pack Size to 1 Store Pref Not Enabled

Expected Behaviour

The expected behavior is that the pack size field always defaults to the default pack size for the item. This ensures consistency and accuracy in stocktake data, particularly when dealing with items that have a default pack size other than 1.

How to Reproduce

To reproduce this issue, follow these steps:

Bug 1: Pack Size 0 for Placeholder Lines

  1. Generate a stocktake from the master list.
  2. Click on a row for an item that doesn't have any stock.
  3. Observe the pack size field displaying 0.

Bug 2: Pack Size 1 for Added Items and Batches

  1. Find an item with a default pack size other than 1.
  2. Add a stocktake row using the Add Item button or the Add Batch within the edit modal.
  3. Observe the pack size field displaying 1, regardless of the default pack size.

Your Environment

Software and Hardware Details

  • Open mSupply Version: v2.7.0
  • Legacy mSupply Central Server Version: (not applicable)
  • Platform: (not specified)
  • Database type: (not specified)

Reproduction Steps

To reproduce this issue, ensure that you have the following environment setup:

  • mSupply Version: v2.7.0
  • Legacy mSupply Central Server Version: (not applicable)
  • Platform: (not specified) Database type: (not specified)

Troubleshooting

If you are experiencing this issue, try the following troubleshooting steps:

  • Check if the pack size to 1 store pref is enabled.
  • Verify that the default pack size is set correctly for the item.
  • Ensure that the stocktake is generated from the master list.

Conclusion


Frequently Asked Questions

Q: What is the issue with the stocktake system?

A: The stocktake system is experiencing two critical issues: pack size 0 for placeholder lines and pack size 1 for added items and batches. These issues can lead to inaccurate stocktake data and inconsistencies in the system.

Q: What is the expected behavior of the pack size field?

A: The expected behavior is that the pack size field always defaults to the default pack size for the item. This ensures consistency and accuracy in stocktake data, particularly when dealing with items that have a default pack size other than 1.

Q: How to reproduce the issue?

A: To reproduce the issue, follow these steps:

Bug 1: Pack Size 0 for Placeholder Lines

  1. Generate a stocktake from the master list.
  2. Click on a row for an item that doesn't have any stock.
  3. Observe the pack size field displaying 0.

Bug 2: Pack Size 1 for Added Items and Batches

  1. Find an item with a default pack size other than 1.
  2. Add a stocktake row using the Add Item button or the Add Batch within the edit modal.
  3. Observe the pack size field displaying 1, regardless of the default pack size.

Q: What are the possible causes of the issue?

A: The possible causes of the issue are:

  • Pack size to 1 store pref is not enabled.
  • Default pack size is not set correctly for the item.
  • Stocktake is not generated from the master list.

Q: How to troubleshoot the issue?

A: To troubleshoot the issue, try the following steps:

  • Check if the pack size to 1 store pref is enabled.
  • Verify that the default pack size is set correctly for the item.
  • Ensure that the stocktake is generated from the master list.

Q: What are the consequences of the issue?

A: The consequences of the issue are:

  • Inaccurate stocktake data.
  • Inconsistencies in the system.
  • Potential errors in inventory management.

Q: How to resolve the issue?

A: To resolve the issue, it is essential to investigate and address the root cause of the problem. This may involve:

  • Updating the pack size to 1 store pref.
  • Correcting the default pack size for the item.
  • Ensuring that the stocktake is generated from the master list.

Q: What are the best practices to prevent the issue?

A: The best practices to prevent the issue are:

  • Regularly updating the pack size to 1 store pref.
  • Verifying that the default pack size is set correctly for the item.
  • Ensuring that the stocktake is generated from the master list.

Q: What are the next steps to resolve the issue?

A: The next steps to resolve the issue are:

  • Investigate and address the root cause of the problem.
  • Update the pack size to 1 store pref.
  • Correct the default pack size for the item.
  • Ensure that the stocktake is generated from the master list.

Q: Who can help me resolve the issue?

A: If you are experiencing this issue, you can contact the mSupply team for assistance. They will be able to provide you with further guidance and support to resolve the issue.