Merge pull request #31914 from frappe/mergify/bp/develop/pr-31894

fix: TDS calculation for advance payment (backport #31894)