fix: Get LTDS based on tax withholding category

This commit is contained in:
Deepesh Garg 2021-10-23 18:58:41 +05:30
parent 2849297471
commit e6e804e7d7

View File

@ -165,6 +165,7 @@ def get_lower_deduction_certificate(tax_details, pan_no):
ldc_name = frappe.db.get_value('Lower Deduction Certificate',
{
'pan_no': pan_no,
'tax_withholding_category': tax_details.tax_withholding_category,
'valid_from': ('>=', tax_details.from_date),
'valid_upto': ('<=', tax_details.to_date)
}, 'name')