Withholding Tax Category

I want to deduct withholding tax on payment, not on the invoice. I am also selecting the withholding tax category, but the system is not fetching the withholding tax in the purchase tax template charges child table. However, it’s working fine from the Invoice WHT. Any reasons for this discrepancy?" version 14 and 15