You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add inactive storage locations and items to the seed
Why?
Better data for when we are investigating problems and demontrating features to the stakeholders
Details
An inactive storage location may have items associated with it, but the level of those items will be zero.
An inactive item will have no current inventory.
Criteria
at least 1 inactive storage location exists in the seed
at least 1 inactive item exists in the seed.
The text was updated successfully, but these errors were encountered:
Hello @cielf , Apologies for the delay in progress due to a medical emergency. I would appreciate it if you could clarify further on how we can create a storage location as inactive. I'm a bit confused about this. Thank you for your understanding.
That's a good question. I looked at the code that is called when we press the "deactivate" button on a storage location. From storage_location_deactivate_service.rb, it appears that we call discard! on the storage location to deactivate it.
So, create the storage location and then discard! it?
Thank you for the clarification. I understand now. So, after creating a storage location, I would just need to call discard! on it to set it as inactive. I’ll go ahead and implement this approach.
Summary
Add inactive storage locations and items to the seed
Why?
Better data for when we are investigating problems and demontrating features to the stakeholders
Details
An inactive storage location may have items associated with it, but the level of those items will be zero.
An inactive item will have no current inventory.
Criteria
The text was updated successfully, but these errors were encountered: