refactor: Remove dead code (#30140)

This commit is contained in:
Chillar Anand 2022-03-09 17:16:05 +05:30 committed by GitHub
parent b1c8a4543d
commit fe4b6771b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 1 additions and 7 deletions

View File

@ -495,7 +495,6 @@ def get_number_of_leave_days(employee, leave_type, from_date, to_date, half_day
number_of_days = date_diff(to_date, from_date) + .5
else:
number_of_days = date_diff(to_date, from_date) + 1
else:
number_of_days = date_diff(to_date, from_date) + 1

View File

@ -1,14 +1,12 @@
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import frappe
from frappe import _
from frappe.utils import flt
def execute(filters=None):
columns, data = [], []
data = get_data(filters)
columns = get_columns()
charts = get_chart_data(data)

View File

@ -30,7 +30,6 @@ def execute(filters=None):
if region != 'United States':
return [], []
data = []
columns = get_columns()
conditions = ""
if filters.supplier_group:

View File

@ -118,8 +118,7 @@ def make_customer():
"customer_type": "Company",
})
customer.insert()
else:
customer = frappe.get_doc("Customer", "_Test UAE Customer")
def make_supplier():
if not frappe.db.exists("Supplier", "_Test UAE Supplier"):

View File

@ -18,7 +18,6 @@ def execute(filters=None):
is_reposting_item_valuation_in_progress()
if not filters: filters = {}
from_date = filters.get('from_date')
to_date = filters.get('to_date')
if filters.get("company"):