<@U7LD3QY22> don't have it at hand but netsuite do...
# suitescript
l
@arindam don't have it at hand but netsuite documentation/suiteanswer have a javascript file that does it, you can reuse it