Hi, on point 2 first. The plus/minus pair is how the India localization works, it doesn't post net directly, it calculates TDS on the full invoice and then puts a negative adjustment for what was already deducted on the advance. The balance lands on the last line because the applied advance gets consumed line by line, so line 5 takes whatever is left and it can turn negative. Ugly, but by itself not a bug.
The 700 instead of 1000 is the real problem. I'd check the TDS Section and Assessee Code on the advance payment against every invoice line, if one line sits on a different section the adjustment won't tie. Also rounding precision in the Tax Type setup, and whether surcharge or threshold overlook is set different between the payment and the invoice.
For reconciling don't go line-wise, sum the TDS Entries for that document, that is what goes to the return anyway.
Glad to help - follow up if anything is unclear.
► If this solved it, marking it verified helps others too.
Regards,
Grigorios Mavrogeorgis
Business Central Consultant & AL Developer
Work: Gmsoft Limited
Blog: insidebusinesscentral
LinkedIn: linkedin.com/in/gregorymavrogeorgis