code stringlengths 1 1.05M | repo_name stringlengths 6 83 | path stringlengths 3 242 | language stringclasses 222
values | license stringclasses 20
values | size int64 1 1.05M |
|---|---|---|---|---|---|
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import frappe
from frappe import _
from frappe.model.mapper import get_mapped_doc
from hrms.controllers.employee_boarding_controller import EmployeeBoardingController
class IncompleteTaskError(fra... | 2302_79757062/hrms | hrms/hr/doctype/employee_onboarding/employee_onboarding.py | Python | agpl-3.0 | 2,645 |
frappe.listview_settings["Employee Onboarding"] = {
add_fields: ["boarding_status", "employee_name", "date_of_joining", "department"],
filters: [["boarding_status", "=", "Pending"]],
get_indicator: function (doc) {
return [
__(doc.boarding_status),
frappe.utils.guess_colour(doc.boarding_status),
"status,=... | 2302_79757062/hrms | hrms/hr/doctype/employee_onboarding/employee_onboarding_list.js | JavaScript | agpl-3.0 | 358 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Employee Onboarding Template", {
setup: function (frm) {
frm.set_query("department", function () {
return {
filters: {
company: frm.doc.company,
},
};
});
... | 2302_79757062/hrms | hrms/hr/doctype/employee_onboarding_template/employee_onboarding_template.js | JavaScript | agpl-3.0 | 328 |
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from frappe.model.document import Document
class EmployeeOnboardingTemplate(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/employee_onboarding_template/employee_onboarding_template.py | Python | agpl-3.0 | 216 |
def get_data():
return {
"fieldname": "employee_onboarding_template",
"transactions": [
{"items": ["Employee Onboarding"]},
],
}
| 2302_79757062/hrms | hrms/hr/doctype/employee_onboarding_template/employee_onboarding_template_dashboard.py | Python | agpl-3.0 | 140 |
// Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Employee Performance Feedback", {
onload(frm) {
frm.trigger("set_reviewer");
},
refresh(frm) {
frm.trigger("set_filters");
},
employee(frm) {
frm.set_value("appraisal... | 2302_79757062/hrms | hrms/hr/doctype/employee_performance_feedback/employee_performance_feedback.js | JavaScript | agpl-3.0 | 1,063 |
# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.utils import flt, get_link_to_form
from hrms.hr.doctype.appraisal_cycle.appraisal_cycle import validate_activ... | 2302_79757062/hrms | hrms/hr/doctype/employee_performance_feedback/employee_performance_feedback.py | Python | agpl-3.0 | 2,371 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
{% include 'hrms/hr/employee_property_update.js' %}
frappe.ui.form.on('Employee Promotion', {
refresh: function(frm) {
}
});
| 2302_79757062/hrms | hrms/hr/doctype/employee_promotion/employee_promotion.js | JavaScript | agpl-3.0 | 251 |
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.utils import getdate
from hrms.hr.utils import update_employee_work_history, validate_active_employee
clas... | 2302_79757062/hrms | hrms/hr/doctype/employee_promotion/employee_promotion.py | Python | agpl-3.0 | 1,121 |
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from frappe.model.document import Document
class EmployeePropertyHistory(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/employee_property_history/employee_property_history.py | Python | agpl-3.0 | 213 |
// Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Employee Referral", {
refresh: function (frm) {
if (frm.doc.docstatus === 1 && frm.doc.status === "Pending") {
frm.add_custom_button(__("Reject Employee Referral"), function... | 2302_79757062/hrms | hrms/hr/doctype/employee_referral/employee_referral.js | JavaScript | agpl-3.0 | 1,922 |
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.utils import get_link_to_form
from hrms.hr.utils import validate_active_employee
class EmployeeReferral(Do... | 2302_79757062/hrms | hrms/hr/doctype/employee_referral/employee_referral.py | Python | agpl-3.0 | 2,387 |
def get_data():
return {
"fieldname": "employee_referral",
"non_standard_fieldnames": {"Additional Salary": "ref_docname"},
"transactions": [
{"items": ["Job Applicant", "Additional Salary"]},
],
}
| 2302_79757062/hrms | hrms/hr/doctype/employee_referral/employee_referral_dashboard.py | Python | agpl-3.0 | 211 |
frappe.listview_settings["Employee Referral"] = {
add_fields: ["status"],
get_indicator: function (doc) {
if (doc.status == "Pending") {
return [__(doc.status), "grey", "status,=," + doc.status];
} else if (doc.status == "In Process") {
return [__(doc.status), "orange", "status,=," + doc.status];
} else i... | 2302_79757062/hrms | hrms/hr/doctype/employee_referral/employee_referral_list.js | JavaScript | agpl-3.0 | 527 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Employee Separation", {
setup: function (frm) {
frm.add_fetch("employee_separation_template", "company", "company");
frm.add_fetch("employee_separation_template", "department... | 2302_79757062/hrms | hrms/hr/doctype/employee_separation/employee_separation.js | JavaScript | agpl-3.0 | 1,733 |
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from hrms.controllers.employee_boarding_controller import EmployeeBoardingController
class EmployeeSeparation(EmployeeBoardingController):
def validate(self):
super().validate()
def on_submit(... | 2302_79757062/hrms | hrms/hr/doctype/employee_separation/employee_separation.py | Python | agpl-3.0 | 467 |
frappe.listview_settings["Employee Separation"] = {
add_fields: ["boarding_status", "employee_name", "department"],
filters: [["boarding_status", "=", "Pending"]],
get_indicator: function (doc) {
return [
__(doc.boarding_status),
frappe.utils.guess_colour(doc.boarding_status),
"status,=," + doc.boarding_s... | 2302_79757062/hrms | hrms/hr/doctype/employee_separation/employee_separation_list.js | JavaScript | agpl-3.0 | 339 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Employee Separation Template", {
refresh: function (frm) {},
});
| 2302_79757062/hrms | hrms/hr/doctype/employee_separation_template/employee_separation_template.js | JavaScript | agpl-3.0 | 207 |
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from frappe.model.document import Document
class EmployeeSeparationTemplate(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/employee_separation_template/employee_separation_template.py | Python | agpl-3.0 | 216 |
def get_data():
return {
"fieldname": "employee_separation_template",
"transactions": [
{"items": ["Employee Separation"]},
],
}
| 2302_79757062/hrms | hrms/hr/doctype/employee_separation_template/employee_separation_template_dashboard.py | Python | agpl-3.0 | 140 |
# Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class EmployeeSkill(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/employee_skill/employee_skill.py | Python | agpl-3.0 | 219 |
// Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Employee Skill Map", {
// refresh: function(frm) {
// }
designation: (frm) => {
frm.set_value("employee_skills", null);
if (frm.doc.designation) {
frappe.db.get_doc("De... | 2302_79757062/hrms | hrms/hr/doctype/employee_skill_map/employee_skill_map.js | JavaScript | agpl-3.0 | 651 |
# Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class EmployeeSkillMap(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/employee_skill_map/employee_skill_map.py | Python | agpl-3.0 | 222 |
# Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class EmployeeTraining(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/employee_training/employee_training.py | Python | agpl-3.0 | 222 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
{% include 'hrms/hr/employee_property_update.js' %}
frappe.ui.form.on('Employee Transfer', {
refresh: function(frm) {
}
});
| 2302_79757062/hrms | hrms/hr/doctype/employee_transfer/employee_transfer.js | JavaScript | agpl-3.0 | 250 |
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.utils import getdate
from hrms.hr.utils import update_employee_work_history
class EmployeeTransfer(Documen... | 2302_79757062/hrms | hrms/hr/doctype/employee_transfer/employee_transfer.py | Python | agpl-3.0 | 2,560 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from frappe.model.document import Document
class EmploymentType(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/employment_type/employment_type.py | Python | agpl-3.0 | 212 |
// Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Exit Interview", {
refresh: function (frm) {
if (
!frm.doc.__islocal &&
!frm.doc.questionnaire_email_sent &&
frappe.boot.user.can_write.includes("Exit Interview")
) ... | 2302_79757062/hrms | hrms/hr/doctype/exit_interview/exit_interview.js | JavaScript | agpl-3.0 | 1,188 |
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.utils import get_link_to_form
from erpnext.setup.doctype.employee.employee import get_employee_email
class ... | 2302_79757062/hrms | hrms/hr/doctype/exit_interview/exit_interview.py | Python | agpl-3.0 | 4,200 |
frappe.listview_settings["Exit Interview"] = {
has_indicator_for_draft: 1,
get_indicator: function (doc) {
let status_color = {
Pending: "orange",
Scheduled: "yellow",
Completed: "green",
Cancelled: "red",
};
return [__(doc.status), status_color[doc.status], "status,=," + doc.status];
},
onload: ... | 2302_79757062/hrms | hrms/hr/doctype/exit_interview/exit_interview_list.js | JavaScript | agpl-3.0 | 737 |
<h2>Exit Questionnaire</h2>
<br>
<p>
Dear {{ employee_name }},
<br><br>
Thank you for the contribution you have made during your time at {{ company }}. We value your opinion and welcome the feedback on your experience working with us.
Request you to take out a few minutes to fill up this Exit Questionnaire.
{% ... | 2302_79757062/hrms | hrms/hr/doctype/exit_interview/exit_questionnaire_notification_template.html | HTML | agpl-3.0 | 636 |
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class ExpectedSkillSet(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/expected_skill_set/expected_skill_set.py | Python | agpl-3.0 | 222 |
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
frappe.provide("hrms.hr");
frappe.provide("erpnext.accounts.dimensions");
frappe.ui.form.on("Expense Claim", {
setup: function (frm) {
frm.set_query("employee_advance", "advances", funct... | 2302_79757062/hrms | hrms/hr/doctype/expense_claim/expense_claim.js | JavaScript | agpl-3.0 | 11,401 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
import frappe
from frappe import _
from frappe.model.mapper import get_mapped_doc
from frappe.query_builder.functions import Sum
from frappe.utils import cstr, flt, get_link_to_form
import e... | 2302_79757062/hrms | hrms/hr/doctype/expense_claim/expense_claim.py | Python | agpl-3.0 | 17,476 |
from frappe import _
def get_data():
return {
"fieldname": "reference_name",
"internal_links": {"Employee Advance": ["advances", "employee_advance"]},
"transactions": [
{"label": _("Payment"), "items": ["Payment Entry", "Journal Entry"]},
{"label": _("Reference"), "items": ["Employee Advance"]},
],
}
| 2302_79757062/hrms | hrms/hr/doctype/expense_claim/expense_claim_dashboard.py | Python | agpl-3.0 | 320 |
frappe.listview_settings["Expense Claim"] = {
add_fields: ["company"],
};
| 2302_79757062/hrms | hrms/hr/doctype/expense_claim/expense_claim_list.js | JavaScript | agpl-3.0 | 75 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from frappe.model.document import Document
class ExpenseClaimAccount(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/expense_claim_account/expense_claim_account.py | Python | agpl-3.0 | 209 |
# Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from frappe.model.document import Document
class ExpenseClaimAdvance(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/expense_claim_advance/expense_claim_advance.py | Python | agpl-3.0 | 209 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from frappe.model.document import Document
class ExpenseClaimDetail(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/expense_claim_detail/expense_claim_detail.py | Python | agpl-3.0 | 216 |
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
frappe.ui.form.on("Expense Claim Type", {
refresh: function (frm) {
frm.fields_dict["accounts"].grid.get_field("default_account").get_query = function (
doc,
cdt,
cdn,
) {
v... | 2302_79757062/hrms | hrms/hr/doctype/expense_claim_type/expense_claim_type.js | JavaScript | agpl-3.0 | 513 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
import frappe
from frappe import _
from frappe.model.document import Document
class ExpenseClaimType(Document):
def validate(self):
self.validate_accounts()
self.validate_repeating_com... | 2302_79757062/hrms | hrms/hr/doctype/expense_claim_type/expense_claim_type.py | Python | agpl-3.0 | 1,013 |
# Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class ExpenseTaxesandCharges(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/expense_taxes_and_charges/expense_taxes_and_charges.py | Python | agpl-3.0 | 228 |
// Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Full and Final Asset", {
// refresh: function(frm) {
// }
});
| 2302_79757062/hrms | hrms/hr/doctype/full_and_final_asset/full_and_final_asset.js | JavaScript | agpl-3.0 | 205 |
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class FullandFinalAsset(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/full_and_final_asset/full_and_final_asset.py | Python | agpl-3.0 | 222 |
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class FullandFinalOutstandingStatement(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/full_and_final_outstanding_statement/full_and_final_outstanding_statement.py | Python | agpl-3.0 | 237 |
// Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Full and Final Statement", {
refresh: function (frm) {
frm.events.set_queries(frm, "payables");
frm.events.set_queries(frm, "receivables");
if (frm.doc.docstatus == 1 && f... | 2302_79757062/hrms | hrms/hr/doctype/full_and_final_statement/full_and_final_statement.js | JavaScript | agpl-3.0 | 4,124 |
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.utils import flt, get_link_to_form, today
class FullandFinalStatement(Document):
def before_insert(self):
... | 2302_79757062/hrms | hrms/hr/doctype/full_and_final_statement/full_and_final_statement.py | Python | agpl-3.0 | 9,548 |
frappe.listview_settings["Full and Final Statement"] = {
get_indicator: function (doc) {
var colors = {
Draft: "red",
Unpaid: "orange",
Paid: "green",
Cancelled: "red",
};
return [__(doc.status), colors[doc.status], "status,=," + doc.status];
},
};
| 2302_79757062/hrms | hrms/hr/doctype/full_and_final_statement/full_and_final_statement_list.js | JavaScript | agpl-3.0 | 269 |
// Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Goal", {
refresh(frm) {
frm.trigger("set_filters");
frm.trigger("add_custom_buttons");
if (frm.doc.is_group) {
frm.set_df_property(
"progress",
"description",
... | 2302_79757062/hrms | hrms/hr/doctype/goal/goal.js | JavaScript | agpl-3.0 | 2,573 |
# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from pypika import CustomFunction
import frappe
from frappe import _
from frappe.query_builder.functions import Avg
from frappe.utils import cint, flt
from frappe.utils.nestedset import NestedSet
fr... | 2302_79757062/hrms | hrms/hr/doctype/goal/goal.py | Python | agpl-3.0 | 6,779 |
frappe.listview_settings["Goal"] = {
add_fields: ["end_date", "status"],
get_indicator: function (doc) {
const status_color = {
Pending: "yellow",
"In Progress": "orange",
Completed: "green",
Archived: "gray",
Closed: "red",
};
return [__(doc.status), status_color[doc.status], "status,=," + doc.... | 2302_79757062/hrms | hrms/hr/doctype/goal/goal_list.js | JavaScript | agpl-3.0 | 4,180 |
frappe.provide("frappe.treeview_settings");
frappe.treeview_settings["Goal"] = {
get_tree_nodes: "hrms.hr.doctype.goal.goal.get_children",
filters: [
{
fieldname: "company",
fieldtype: "Select",
options: erpnext.utils.get_tree_options("company"),
label: __("Company"),
default: erpnext.utils.get_tree... | 2302_79757062/hrms | hrms/hr/doctype/goal/goal_tree.js | JavaScript | agpl-3.0 | 7,065 |
// Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Grievance Type", {
// refresh: function(frm) {
// }
});
| 2302_79757062/hrms | hrms/hr/doctype/grievance_type/grievance_type.js | JavaScript | agpl-3.0 | 199 |
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class GrievanceType(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/grievance_type/grievance_type.py | Python | agpl-3.0 | 218 |
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("HR Settings", {
refresh: function (frm) {
frm.set_query("sender", () => {
return {
filters: {
enable_outgoing: 1,
},
};
});
frm.set_query("hiring_sender"... | 2302_79757062/hrms | hrms/hr/doctype/hr_settings/hr_settings.js | JavaScript | agpl-3.0 | 1,146 |
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
# For license information, please see license.txt
import frappe
from frappe.model.document import Document
from frappe.utils import format_date
# Wether to proceed with frequency change
PROC... | 2302_79757062/hrms | hrms/hr/doctype/hr_settings/hr_settings.py | Python | agpl-3.0 | 2,866 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Identification Document Type", {
refresh: function (frm) {},
});
| 2302_79757062/hrms | hrms/hr/doctype/identification_document_type/identification_document_type.js | JavaScript | agpl-3.0 | 207 |
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from frappe.model.document import Document
class IdentificationDocumentType(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/identification_document_type/identification_document_type.py | Python | agpl-3.0 | 216 |
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Interest", {
refresh: function (frm) {},
});
| 2302_79757062/hrms | hrms/hr/doctype/interest/interest.js | JavaScript | agpl-3.0 | 187 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from frappe.model.document import Document
class Interest(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/interest/interest.py | Python | agpl-3.0 | 198 |
// Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Interview", {
refresh: function (frm) {
frm.set_query("job_applicant", function () {
let job_applicant_filters = {
status: ["!=", "Rejected"],
};
if (frm.doc.desig... | 2302_79757062/hrms | hrms/hr/doctype/interview/interview.js | JavaScript | agpl-3.0 | 6,549 |
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import datetime
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.query_builder.functions import Avg
from frappe.utils import cint, cstr, get_datetime, get_li... | 2302_79757062/hrms | hrms/hr/doctype/interview/interview.py | Python | agpl-3.0 | 12,641 |
frappe.views.calendar["Interview"] = {
field_map: {
start: "from",
end: "to",
id: "name",
title: "subject",
allDay: "allDay",
color: "color",
},
order_by: "scheduled_on",
gantt: true,
get_events_method: "hrms.hr.doctype.interview.interview.get_events",
};
| 2302_79757062/hrms | hrms/hr/doctype/interview/interview_calendar.js | JavaScript | agpl-3.0 | 273 |
<h1>Interview Feedback Reminder</h1>
<p>
Interview Feedback for Interview {{ name }} is not submitted yet. Please submit your feedback. Thank you, good day!
</p>
| 2302_79757062/hrms | hrms/hr/doctype/interview/interview_feedback_reminder_template.html | HTML | agpl-3.0 | 164 |
frappe.listview_settings["Interview"] = {
has_indicator_for_draft: 1,
get_indicator: function (doc) {
let status_color = {
Pending: "orange",
"Under Review": "blue",
Cleared: "green",
Rejected: "red",
};
return [__(doc.status), status_color[doc.status], "status,=," + doc.status];
},
};
| 2302_79757062/hrms | hrms/hr/doctype/interview/interview_list.js | JavaScript | agpl-3.0 | 308 |
<h1>Interview Reminder</h1>
<p>
Interview: {{name}} is scheduled on {{scheduled_on}} from {{from_time}} to {{to_time}}
</p>
| 2302_79757062/hrms | hrms/hr/doctype/interview/interview_reminder_notification_template.html | HTML | agpl-3.0 | 126 |
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class InterviewDetail(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/interview_detail/interview_detail.py | Python | agpl-3.0 | 220 |
// Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Interview Feedback", {
onload: function (frm) {
frm.ignore_doctypes_on_cancel_all = ["Interview"];
frm.set_query("interview", function () {
return {
filters: {
d... | 2302_79757062/hrms | hrms/hr/doctype/interview_feedback/interview_feedback.js | JavaScript | agpl-3.0 | 1,180 |
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.query_builder.functions import Avg
from frappe.utils import flt, get_link_to_form, getdate
class InterviewF... | 2302_79757062/hrms | hrms/hr/doctype/interview_feedback/interview_feedback.py | Python | agpl-3.0 | 2,736 |
// Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Interview Round", {
refresh: function (frm) {
if (!frm.doc.__islocal) {
frm.add_custom_button(__("Create Interview"), function () {
frm.events.create_interview(frm);
... | 2302_79757062/hrms | hrms/hr/doctype/interview_round/interview_round.js | JavaScript | agpl-3.0 | 1,081 |
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import json
import frappe
from frappe.model.document import Document
class InterviewRound(Document):
pass
@frappe.whitelist()
def create_interview(doc):
if isinstance(doc, str):
doc = json.l... | 2302_79757062/hrms | hrms/hr/doctype/interview_round/interview_round.py | Python | agpl-3.0 | 651 |
// Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Interview Type", {
// refresh: function(frm) {
// }
});
| 2302_79757062/hrms | hrms/hr/doctype/interview_type/interview_type.js | JavaScript | agpl-3.0 | 199 |
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class InterviewType(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/interview_type/interview_type.py | Python | agpl-3.0 | 219 |
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class Interviewer(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/interviewer/interviewer.py | Python | agpl-3.0 | 217 |
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
// For license information, please see license.txt
// for communication
cur_frm.email_field = "email_id";
frappe.ui.form.on("Job Applicant", {
refresh: function (frm) {
frm.set_query("j... | 2302_79757062/hrms | hrms/hr/doctype/job_applicant/job_applicant.js | JavaScript | agpl-3.0 | 2,983 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
# For license information, please see license.txt
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.model.naming import append_number_if_name_exists
f... | 2302_79757062/hrms | hrms/hr/doctype/job_applicant/job_applicant.py | Python | agpl-3.0 | 3,715 |
{% if not jQuery.isEmptyObject(data) %}
<table class="table table-bordered small">
<thead>
<tr>
<th style="width: 14%" class="text-left">{{ __("Interview") }}</th>
<th style="width: 16%" class="text-left">{{ __("Interview Round") }}</th>
<th style="width: 12%" class="text-left">{{ __("Date") }}</th>
<t... | 2302_79757062/hrms | hrms/hr/doctype/job_applicant/job_applicant_dashboard.html | HTML | agpl-3.0 | 2,698 |
def get_data():
return {
"fieldname": "job_applicant",
"transactions": [
{"items": ["Employee", "Employee Onboarding"]},
{"items": ["Job Offer", "Appointment Letter"]},
{"items": ["Interview"]},
],
}
| 2302_79757062/hrms | hrms/hr/doctype/job_applicant/job_applicant_dashboard.py | Python | agpl-3.0 | 217 |
// Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
frappe.listview_settings["Job Applicant"] = {
add_fields: ["status"],
get_indicator: function (doc) {
if (doc.status == "Accepted") {
return [__(doc.status), "green", "status,=," + doc.status];
} else if (["O... | 2302_79757062/hrms | hrms/hr/doctype/job_applicant/job_applicant_list.js | JavaScript | agpl-3.0 | 555 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Job Applicant Source", {
refresh: function () {},
});
| 2302_79757062/hrms | hrms/hr/doctype/job_applicant_source/job_applicant_source.js | JavaScript | agpl-3.0 | 196 |
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from frappe.model.document import Document
class JobApplicantSource(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/job_applicant_source/job_applicant_source.py | Python | agpl-3.0 | 208 |
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
frappe.provide("erpnext.job_offer");
frappe.ui.form.on("Job Offer", {
onload: function (frm) {
frm.set_query("select_terms", function () {
return { filters: { hr: 1 } };
});
},
s... | 2302_79757062/hrms | hrms/hr/doctype/job_offer/job_offer.js | JavaScript | agpl-3.0 | 1,598 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors and contributors
# For license information, please see license.txt
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.model.mapper import get_mapped_doc
from frappe.utils import cint, flt, get_link_to_form
cl... | 2302_79757062/hrms | hrms/hr/doctype/job_offer/job_offer.py | Python | agpl-3.0 | 3,723 |
// Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
frappe.listview_settings["Job Offer"] = {
add_fields: ["company", "designation", "job_applicant", "status"],
get_indicator: function (doc) {
if (doc.status == "Accepted") {
return [__(doc.status), "green", "sta... | 2302_79757062/hrms | hrms/hr/doctype/job_offer/job_offer_list.js | JavaScript | agpl-3.0 | 570 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors and contributors
# For license information, please see license.txt
from frappe.model.document import Document
class JobOfferTerm(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/job_offer_term/job_offer_term.py | Python | agpl-3.0 | 219 |
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("Job Offer Term Template", {
// refresh(frm) {
// },
// });
| 2302_79757062/hrms | hrms/hr/doctype/job_offer_term_template/job_offer_term_template.js | JavaScript | agpl-3.0 | 206 |
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class JobOfferTermTemplate(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/job_offer_term_template/job_offer_term_template.py | Python | agpl-3.0 | 225 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Job Opening", {
onload: function (frm) {
frm.set_query("department", function () {
return {
filters: {
company: frm.doc.company,
},
};
});
},
designation... | 2302_79757062/hrms | hrms/hr/doctype/job_opening/job_opening.js | JavaScript | agpl-3.0 | 1,266 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
# For license information, please see license.txt
import frappe
from frappe import _
from frappe.model.naming import set_name_from_naming_options
from frappe.utils import get_link_to_form, g... | 2302_79757062/hrms | hrms/hr/doctype/job_opening/job_opening.py | Python | agpl-3.0 | 3,953 |
def get_data():
return {
"fieldname": "job_title",
"transactions": [{"items": ["Job Applicant"]}],
}
| 2302_79757062/hrms | hrms/hr/doctype/job_opening/job_opening_dashboard.py | Python | agpl-3.0 | 107 |
// Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Job Requisition", {
refresh: function (frm) {
if (!frm.doc.__islocal && !["Filled", "On Hold", "Cancelled"].includes(frm.doc.status)) {
frappe.db
.get_list("Employee Ref... | 2302_79757062/hrms | hrms/hr/doctype/job_requisition/job_requisition.js | JavaScript | agpl-3.0 | 2,279 |
# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.model.mapper import get_mapped_doc
from frappe.utils import format_duration, get_link_to_form, time_diff_in_se... | 2302_79757062/hrms | hrms/hr/doctype/job_requisition/job_requisition.py | Python | agpl-3.0 | 2,785 |
frappe.listview_settings["Job Requisition"] = {
get_indicator: function (doc) {
const status_color = {
Pending: "yellow",
"Open & Approved": "blue",
Rejected: "red",
Filled: "green",
Cancelled: "gray",
"On Hold": "gray",
};
return [__(doc.status), status_color[doc.status], "status,=," + doc.sta... | 2302_79757062/hrms | hrms/hr/doctype/job_requisition/job_requisition_list.js | JavaScript | agpl-3.0 | 780 |
// Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("KRA", {
// refresh: function(frm) {
// }
});
| 2302_79757062/hrms | hrms/hr/doctype/kra/kra.js | JavaScript | agpl-3.0 | 188 |
# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
# import frappe
from frappe.model.document import Document
class KRA(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/kra/kra.py | Python | agpl-3.0 | 208 |
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
// nosemgrep: frappe-semgrep-rules.rules.frappe-cur-frm-usage
cur_frm.add_fetch("employee", "employee_name", "employee_name");
frappe.ui.form.on("Leave Allocation", {
onload: function (frm... | 2302_79757062/hrms | hrms/hr/doctype/leave_allocation/leave_allocation.js | JavaScript | agpl-3.0 | 4,071 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.utils import add_days, date_diff, flt, formatdate, get_link_to_form, getdate
from hrms.hr.doctype.le... | 2302_79757062/hrms | hrms/hr/doctype/leave_allocation/leave_allocation.py | Python | agpl-3.0 | 13,201 |
def get_data():
return {
"fieldname": "leave_allocation",
"transactions": [{"items": ["Compensatory Leave Request"]}, {"items": ["Leave Encashment"]}],
"reports": [{"items": ["Employee Leave Balance"]}],
}
| 2302_79757062/hrms | hrms/hr/doctype/leave_allocation/leave_allocation_dashboard.py | Python | agpl-3.0 | 214 |
// Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
// render
frappe.listview_settings["Leave Allocation"] = {
get_indicator: function (doc) {
if (doc.status === "Expired") {
return [__("Expired"), "gray", "expired, =, 1"];
}
},
};
| 2302_79757062/hrms | hrms/hr/doctype/leave_allocation/leave_allocation_list.js | JavaScript | agpl-3.0 | 319 |
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
frappe.ui.form.on("Leave Application", {
setup: function (frm) {
frm.set_query("leave_approver", function () {
return {
query: "hrms.hr.doctype.department_approver.department_appro... | 2302_79757062/hrms | hrms/hr/doctype/leave_application/leave_application.js | JavaScript | agpl-3.0 | 7,679 |