chore: Cleanup imports (#27320)
* chore: Added isort to pre-commit config * chore: Sort imports with isort * chore: Remove imports with pycln * chore: Sort imports with isort * chore: Fix import issues * chore: Fix sider issues * chore: linting * chore: linting / sorting import from ecommerce refactor merge * ci: dont allow unused imports * chore: sort / clean ecommerce imports Co-authored-by: Ankush Menat <ankush@iwebnotes.com>
This commit is contained in:
@@ -1,14 +1,30 @@
|
||||
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
# License: GNU General Public License v3. See license.txt
|
||||
|
||||
import erpnext
|
||||
import frappe
|
||||
from erpnext.hr.doctype.employee.employee import get_holiday_list_for_employee, InactiveEmployeeStatusError
|
||||
from frappe import _
|
||||
from frappe.desk.form import assign_to
|
||||
from frappe.model.document import Document
|
||||
from frappe.utils import (add_days, cstr, flt, format_datetime, formatdate,
|
||||
get_datetime, getdate, nowdate, today, unique, get_link_to_form)
|
||||
from frappe.utils import (
|
||||
add_days,
|
||||
cstr,
|
||||
flt,
|
||||
format_datetime,
|
||||
formatdate,
|
||||
get_datetime,
|
||||
get_link_to_form,
|
||||
getdate,
|
||||
nowdate,
|
||||
today,
|
||||
unique,
|
||||
)
|
||||
|
||||
import erpnext
|
||||
from erpnext.hr.doctype.employee.employee import (
|
||||
InactiveEmployeeStatusError,
|
||||
get_holiday_list_for_employee,
|
||||
)
|
||||
|
||||
|
||||
class DuplicateDeclarationError(frappe.ValidationError): pass
|
||||
|
||||
@@ -385,6 +401,7 @@ def create_additional_leave_ledger_entry(allocation, leaves, date):
|
||||
|
||||
def check_effective_date(from_date, to_date, frequency, based_on_date_of_joining_date):
|
||||
import calendar
|
||||
|
||||
from dateutil import relativedelta
|
||||
|
||||
from_date = get_datetime(from_date)
|
||||
|
||||
Reference in New Issue
Block a user