Skip to content

Commit

Permalink
fix: TDS amount calculation post LDC breach (#35886)
Browse files Browse the repository at this point in the history
* fix: TDS amount calculation post LDC breach

(cherry picked from commit 1f9ef6c)

# Conflicts:
#	erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py

* chore: resolve conflicts

---------

Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
  • Loading branch information
mergify[bot] and deepeshgarg007 committed Jun 27, 2023
1 parent 12b6257 commit 4dd088c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ def is_valid_certificate(
):
valid = False

available_amount = flt(certificate_limit) - flt(deducted_amount) - flt(current_amount)
available_amount = flt(certificate_limit) - flt(deducted_amount)

if (getdate(valid_from) <= getdate(posting_date) <= getdate(valid_upto)) and available_amount > 0:
valid = True
Expand Down

0 comments on commit 4dd088c

Please sign in to comment.