fix: Linting Issues
This commit is contained in:
parent
c33bbd4f39
commit
e7e2ce1271
@ -9,8 +9,6 @@ from frappe import _
|
|||||||
from frappe.model.document import Document
|
from frappe.model.document import Document
|
||||||
from frappe.utils import cint, getdate
|
from frappe.utils import cint, getdate
|
||||||
|
|
||||||
from erpnext.accounts.utils import get_fiscal_year
|
|
||||||
|
|
||||||
|
|
||||||
class TaxWithholdingCategory(Document):
|
class TaxWithholdingCategory(Document):
|
||||||
def validate(self):
|
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):
|
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_from': ('>=', tax_details.from_date),
|
||||||
'valid_upto': ('<=', tax_details.to_date)
|
'valid_upto': ('<=', tax_details.to_date)
|
||||||
}, 'name')
|
}, 'name')
|
||||||
|
@ -2,8 +2,10 @@
|
|||||||
# License: GNU General Public License v3. See license.txt
|
# License: GNU General Public License v3. See license.txt
|
||||||
|
|
||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
from erpnext.accounts.utils import get_fiscal_year
|
from erpnext.accounts.utils import get_fiscal_year
|
||||||
|
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
frappe.reload_doc('accounts', 'doctype', 'Tax Withholding Rate')
|
frappe.reload_doc('accounts', 'doctype', 'Tax Withholding Rate')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user