commit | cceb29c005a5ac2c39c52b2def24d77621a5b021 | [log] [tgz] |
---|---|---|
author | Deepesh Garg <deepeshgarg6@gmail.com> | Fri Sep 30 16:05:30 2022 +0530 |
committer | GitHub <noreply@github.com> | Fri Sep 30 16:05:30 2022 +0530 |
tree | 761fd2c685c9a186fd9d8d28272188a77ebc0a2e | |
parent | a79d07443698faf8a543990272e851b08deb6571 [diff] | |
parent | bff3cd9068c971d9a8d4420ddb9a3100167e29c0 [diff] |
Merge pull request #32412 from deepeshgarg007/tcs_deduction_issue fix: Incorrect TCS amount deducted in Sales Invoice
diff --git a/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py b/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py index 0b5df9e..84c2c9a 100644 --- a/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py +++ b/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py
@@ -335,6 +335,9 @@ "party": ["in", parties], } + if party_type == "Customer": + filters.update({"against_voucher": ["is", "not set"]}) + if company: filters["company"] = company if from_date and to_date: