mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-24 04:26:38 +00:00
chore: whitespace cleanup from codebase
This commit is contained in:
@@ -222,7 +222,7 @@ class Issue(Document):
|
||||
}).insert(ignore_permissions=True)
|
||||
|
||||
return replicated_issue.name
|
||||
|
||||
|
||||
def reset_issue_metrics(self):
|
||||
self.db_set("resolution_time", None)
|
||||
self.db_set("user_resolution_time", None)
|
||||
|
||||
@@ -8,4 +8,4 @@ from frappe import _
|
||||
from frappe.model.document import Document
|
||||
|
||||
class IssuePriority(Document):
|
||||
pass
|
||||
pass
|
||||
|
||||
@@ -25,4 +25,4 @@ def insert_priority(name):
|
||||
frappe.get_doc({
|
||||
"doctype": "Issue Priority",
|
||||
"name": name
|
||||
}).insert(ignore_permissions=True)
|
||||
}).insert(ignore_permissions=True)
|
||||
|
||||
@@ -153,7 +153,7 @@ def get_active_service_level_agreement_for(doc):
|
||||
filters += [["Service Level Agreement", "default_service_level_agreement", "=", 0]]
|
||||
agreements = frappe.get_all("Service Level Agreement", filters=filters, or_filters=or_filters,
|
||||
fields=["name", "default_priority", "condition"])
|
||||
|
||||
|
||||
# check if the current document on which SLA is to be applied fulfills all the conditions
|
||||
filtered_agreements = []
|
||||
for agreement in agreements:
|
||||
|
||||
@@ -9,4 +9,4 @@ def get_data():
|
||||
'items': ['Issue']
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,4 +93,4 @@ cur_frm.fields_dict['item_code'].get_query = function(doc, cdt, cdn) {
|
||||
]
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@@ -32,4 +32,4 @@ def execute(filters=None):
|
||||
ORDER BY creation_date desc
|
||||
''', (filters.from_date, filters.to_date))
|
||||
|
||||
return columns, data
|
||||
return columns, data
|
||||
|
||||
@@ -218,4 +218,4 @@ class IssueAnalytics(object):
|
||||
'datasets': []
|
||||
},
|
||||
'type': 'line'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ class TestIssueAnalytics(unittest.TestCase):
|
||||
if current_month_date.year != last_month_date.year:
|
||||
self.current_month += '_' + str(current_month_date.year)
|
||||
self.last_month += '_' + str(last_month_date.year)
|
||||
|
||||
|
||||
def test_issue_analytics(self):
|
||||
create_service_level_agreements_for_issues()
|
||||
create_issue_types()
|
||||
@@ -211,4 +211,4 @@ def create_records():
|
||||
"assign_to": ["test@example.com", "test1@example.com"],
|
||||
"doctype": "Issue",
|
||||
"name": issue.name
|
||||
})
|
||||
})
|
||||
|
||||
@@ -362,4 +362,3 @@ class IssueSummary(object):
|
||||
'datatype': 'Int',
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
frappe.ready(function() {
|
||||
// bind events here
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user