Need a way to represent lead time at a warehouse level, not product level.
It needs to be accessible in the context of [@warehouse_qty@] loop
https://developers.maropost.com/documentation/neto-designer-documentation/b-se-tag-library/function-tags/product-information/warehouse_qty/
Interesting idea. While that warehouse_ref value is effectively arbitrary, I'm not sure I'd want to mess with it. In some places it still acts as the primary key for a warehouse so Bad Things might happen if it's changed in future (which you may need to do for a lead time). It would also definitely have to be unique for each warehouse which could cause problems.
Assuming lead times don't change often and the site will be maintained by a developer so regular template changes are ok, could you just use a series of [%if%] blocks to look up the lead time? Clearly not ideal from a maintenance point of view, but simple and reliable.
Thanks for the reply 😊
In some places it still acts as the primary key for a warehouse
For curiosity sake, are you able to be specific about 'some places'?
It would also definitely have to be unique for each warehouse
That pretty much answers the question, that's a deal breaker for sure. It's a bit quirky the ctl panel would allow a user to update a primary key after a record is created.
It's a shame, the only other options are hard coding as you've suggested, or to map it from a JSON file or similar. Neither are ideal as they both require updating when a new warehouse is created, but that's how it is sometimes.
As an example, [%thumb_list%] can filter products by warehouse, and that uses the warehouse_ref.
Well, yes, but this is Neto haha. Product SKUs used to be the primary key as well, and then they added a real internal primary key. But the fix was incomplete, so changing a product's SKU can still make things explode. I can't know for sure the same would happen to a warehouse ref, but I've been using Neto long enough to know not to touch it.
What's super weird is there's a field for "Warehouse notes" which even has a B@SE tag associated with it. But I can't find anywhere that B@SE tag can actually be used. Maybe it was never implemented.
Indeed.
I'll take that advice and move on to a less dangerous solution.
Appreciate the help