Create 2 Exemption reasons in WHT Config through SPRO
1. 2%
2. 10%
Assign the above reasons to tax codes in config. When the invoice is booking, check which one is applicable for exemption like reason 1 or 2. Update the same in Vendor master with certificate and %.
Try this in DEV
Thanks