In my question, the line:
"But when I try to upload a similar invoice using DTW, it calculates the TDS amount on 11236, instead of 10000."
should be:
"But when I try to upload a similar invoice using DTW, it calculates the TDS amount on 308990, instead of 275000."