The logic behind the TDS calculation is, In the TDS master the Person category should be added which can be found with the vendor's PAN number where the 4th letter of the Vendor's PAN that defines the person category (I, T, G, C, HUF, F, AOP, BOI, L, AJP, etc) with this name the TDS master should be created and the same should be selected for the particular product. After that, the TDS calculation will be proper.