How to auto settle vendor transaction in Payment Journal

I have achieve this doing customisation on settlement form.

Thanks.