fix: Linting and patch fixes
This commit is contained in:
parent
d06221ad7a
commit
b6d0b17ed6
@ -21,7 +21,7 @@ class TaxWithholdingCategory(Document):
|
||||
frappe.throw(_("Row #{0}: From Date cannot be before To Date").format(d.idx))
|
||||
|
||||
# validate overlapping of dates
|
||||
if last_date and getdate(r.to_date) < getdate(last_date):
|
||||
if last_date and getdate(d.to_date) < getdate(last_date):
|
||||
frappe.throw(_("Row #{0}: Dates overlapping with other row").format(d.idx))
|
||||
|
||||
def validate_thresholds(self):
|
||||
|
@ -6,6 +6,8 @@ from erpnext.accounts.utils import get_fiscal_year
|
||||
|
||||
def execute():
|
||||
frappe.reload_doc('accounts', 'doctype', 'Tax Withholding Rate')
|
||||
|
||||
if frappe.db.has_column('Tax Withholding Rate', 'fiscal_year'):
|
||||
tds_category_rates = frappe.get_all('Tax Withholding Rate', fields=['name', 'fiscal_year'])
|
||||
|
||||
fiscal_year_map = {}
|
||||
|
Loading…
Reference in New Issue
Block a user