mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 03:29:16 +00:00
fix: Get LTDS based on tax withholding category
(cherry picked from commit e6e804e7d7)
This commit is contained in:
committed by
mergify-bot
parent
d116aa6f23
commit
e9c3d3ff0d
@@ -165,6 +165,7 @@ def get_lower_deduction_certificate(tax_details, pan_no):
|
|||||||
ldc_name = frappe.db.get_value('Lower Deduction Certificate',
|
ldc_name = frappe.db.get_value('Lower Deduction Certificate',
|
||||||
{
|
{
|
||||||
'pan_no': pan_no,
|
'pan_no': pan_no,
|
||||||
|
'tax_withholding_category': tax_details.tax_withholding_category,
|
||||||
'valid_from': ('>=', tax_details.from_date),
|
'valid_from': ('>=', tax_details.from_date),
|
||||||
'valid_upto': ('<=', tax_details.to_date)
|
'valid_upto': ('<=', tax_details.to_date)
|
||||||
}, 'name')
|
}, 'name')
|
||||||
|
|||||||
Reference in New Issue
Block a user