case when StatusFlag = 'LWCA' and TransactionType <> 'W' then 'Layw Cancel'
ELSE
case when StatusFlag = 'LWCA' and TransactionType = 'W' then 'Warranty Cancel'
ELSE
case when StatusFlag = 'WAPK' then 'Warranty Pickup'
ELSE
case when StatusFlag = 'LWSE' and TransactionType <> 'W' then 'Layaway'
ELSE
case when StatusFlag = 'LWSE' and TransactionType = 'W' then 'Warranty Setup'
ELSE
case when StatusFlag = 'SALE' and isnull(HV.QTY,0) > 0 and layawaynumber is null then 'Sale'
ELSE
case when StatusFlag = 'SALE' and isnull(HV.QTY,0) > 0 and NOT layawaynumber is null then 'Lwy Pickup'
ELSE
case when StatusFlag = 'SALE' and isnull(HV.QTY,0) <= 0 then 'Return'
End End End End End End End End,