Open cielf opened 2 months ago
I would like to tackle this one!
It's yours!
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