Does anyone have a tried and true formula to ident...
# general
d
Does anyone have a tried and true formula to identify an Item's Type? The native type field doesn't exactly say if an 'Inventory Item' is a 'Serialized Inventory Item'. I'm looking for identification similar to how the CSV Import tool identifies item type.
r
field: is serialized? yes/no
It's a separate field from the type itself
d
Right, I'm wanting to build a formula that will check all the other fields so I can get the type from a single field. Unless someone else already has one
and doesn't mind sharing
r
At the surface level it sounds like a nested CASE custom formula field
There may be better ways, but I don't claim to be an SQL expert.
d
(case
when {isserialitem} = 'T'
then 'Serialized '
when {islotitem} = 'T'
then 'Lot Numbered '
else null end)
|| {type} ||
(case
when {subtype} is not null
then ' ' || {subtype}
else null end)