We need Line item wise TDS calculation in Purchase invoice

how can apply line item wise TDS in purchase invoice

Does TDS RATE differs on each Line? if not there is no need to go and tabulate Withholding tax on line line.

If yes, then customization is needed.