You can also avoid that else 0 and the whole case ...
# suitescript
a
You can also avoid that else 0 and the whole case maybe using nvl
👍 1