How can I define the quantity of objects to be stacked in the floor store, depending on the type of product?
I need to stack three types of products (Type 1, Type 2 and Type 3) but each of them only allows one degree of stacking, like this:
Type 1, only 3 units can be stacked (one on top of the other).
Type 2, only 2 units can be stacked.
Type 3, only 2 units can be stacked.
Unexpected result.
Expected result.
In this answer I found a code that allows to limit the number of units to stack in general, equally, my limit is 3 and that could be adjusted on the z-axis of the object (floor warehouse) but I need the stacking to be subject to the type of product in each slot.
- storageItem.assignedSlot =
- Storage.system.findSlot("WHERE slot.slotItems.length < 8 ");
In a reply I found this code, where they employ a bay positioning code to limit the number of pallets to 5 per bay (which can change). That just checks to see if the bay is full and then finds the next bay that has room to place the item.
Really, I looked at several options and answers, but I couldn't find anything closer. I appreciate the support.
Thank you for your support in advance.