it's not working.
in the Planet Press Production Configuration, in the Set Job Variables and Properties, I have:

%4 set to inv=right('00000'+@(1,8,8,56,60,KeepCase,NoTrim), 5))@domain.net

it shows this as the result when stepping through:
inv=right('00000'+19000, 5))@domain.net