fix: Linting Issues

This commit is contained in:
Deepesh Garg 2021-09-09 11:36:57 +05:30
parent c33bbd4f39
commit e7e2ce1271
2 changed files with 4 additions and 4 deletions

View File

@ -9,8 +9,6 @@ from frappe import _
from frappe.model.document import Document
from frappe.utils import cint, getdate
from erpnext.accounts.utils import get_fiscal_year
class TaxWithholdingCategory(Document):
def validate(self):
@ -163,9 +161,9 @@ def get_tax_row_for_tds(tax_details, tax_amount):
}
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,
'valid_from': ('>=', tax_details.from_date),
'valid_upto': ('<=', tax_details.to_date)
}, 'name')

View File

@ -2,8 +2,10 @@
# License: GNU General Public License v3. See license.txt
import frappe
from erpnext.accounts.utils import get_fiscal_year
def execute():
frappe.reload_doc('accounts', 'doctype', 'Tax Withholding Rate')