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) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
import datetime
import frappe
from frappe import _
from frappe.query_builder.functions import Max, Min, Sum
from frappe.utils import (
add_days,
cint,
cstr,
date_diff,
flt,
formatdate,
... | 2302_79757062/hrms | hrms/hr/doctype/leave_application/leave_application.py | Python | agpl-3.0 | 44,772 |
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
frappe.views.calendar["Leave Application"] = {
field_map: {
start: "from_date",
end: "to_date",
id: "name",
title: "title",
docstatus: 1,
color: "color",
},
options: {
heade... | 2302_79757062/hrms | hrms/hr/doctype/leave_application/leave_application_calendar.js | JavaScript | agpl-3.0 | 490 |
{% if not jQuery.isEmptyObject(data) %}
<table class="table table-bordered small">
<thead>
<tr>
<th style="width: 16%">{{ __("Leave Type") }}</th>
<th style="width: 16%" class="text-right">{{ __("Total Allocated Leaves") }}</th>
<th style="width: 16%" class="text-right">{{ __("Expired Leaves") }}</th>
<... | 2302_79757062/hrms | hrms/hr/doctype/leave_application/leave_application_dashboard.html | HTML | agpl-3.0 | 1,247 |
from frappe import _
def get_data():
return {
"fieldname": "leave_application",
"transactions": [{"items": ["Attendance"]}],
"reports": [{"label": _("Reports"), "items": ["Employee Leave Balance"]}],
}
| 2302_79757062/hrms | hrms/hr/doctype/leave_application/leave_application_dashboard.py | Python | agpl-3.0 | 212 |
<h1>Leave Application Notification</h1>
<h3>Details:</h3>
<table class="table table-bordered small" style="max-width: 500px;">
<tr>
<td>Employee</td>
<td>{{employee_name}}</td>
</tr>
<tr>
<td>Leave Type</td>
<td>{{leave_type}}</td>
</tr>
<tr>
<td>From Date</td>
<td>{{from_date}}</td>
</t... | 2302_79757062/hrms | hrms/hr/doctype/leave_application/leave_application_email_template.html | HTML | agpl-3.0 | 628 |
frappe.listview_settings["Leave Application"] = {
add_fields: [
"leave_type",
"employee",
"employee_name",
"total_leave_days",
"from_date",
"to_date",
],
has_indicator_for_draft: 1,
get_indicator: function (doc) {
const status_color = {
Approved: "green",
Rejected: "red",
Open: "orange",
D... | 2302_79757062/hrms | hrms/hr/doctype/leave_application/leave_application_list.js | JavaScript | agpl-3.0 | 567 |
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Leave Block List", {
add_day_wise_dates: function (frm) {
let d = new frappe.ui.Dialog({
title: "Add Leave Block Dates",
fields: [
{
label: "Start Date",
fi... | 2302_79757062/hrms | hrms/hr/doctype/leave_block_list/leave_block_list.js | JavaScript | agpl-3.0 | 1,932 |
# 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.utils import getdate
class LeaveBlockList(Docume... | 2302_79757062/hrms | hrms/hr/doctype/leave_block_list/leave_block_list.py | Python | agpl-3.0 | 3,077 |
def get_data():
return {"fieldname": "leave_block_list", "transactions": [{"items": ["Department"]}]}
| 2302_79757062/hrms | hrms/hr/doctype/leave_block_list/leave_block_list_dashboard.py | Python | agpl-3.0 | 103 |
# 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
from frappe.model.document import Document
class LeaveBlockListAllow(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/leave_block_list_allow/leave_block_list_allow.py | Python | agpl-3.0 | 268 |
# 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
from frappe.model.document import Document
class LeaveBlockListDate(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/leave_block_list_date/leave_block_list_date.py | Python | agpl-3.0 | 267 |
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
frappe.ui.form.on("Leave Control Panel", {
setup: function (frm) {
frm.trigger("set_query");
frm.trigger("set_leave_details");
hrms.setup_employee_filter_group(frm);
},
refresh: fu... | 2302_79757062/hrms | hrms/hr/doctype/leave_control_panel/leave_control_panel.js | JavaScript | agpl-3.0 | 4,342 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
import frappe
from frappe.model.document import Document
from frappe.utils import cint, flt, get_link_to_form
from erpnext import get_default_company
from hrms.hr.utils import validate_bulk... | 2302_79757062/hrms | hrms/hr/doctype/leave_control_panel/leave_control_panel.py | Python | agpl-3.0 | 6,549 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Leave Encashment", {
onload: function (frm) {
// Ignore cancellation of doctype on cancel all.
frm.ignore_doctypes_on_cancel_all = ["Leave Ledger Entry"];
},
setup: functio... | 2302_79757062/hrms | hrms/hr/doctype/leave_encashment/leave_encashment.js | JavaScript | agpl-3.0 | 1,913 |
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import frappe
from frappe import _, bold
from frappe.model.document import Document
from frappe.utils import format_date, get_link_to_form, getdate
from hrms.hr.doctype.leave_application.leave_appli... | 2302_79757062/hrms | hrms/hr/doctype/leave_encashment/leave_encashment.py | Python | agpl-3.0 | 7,771 |
// Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Leave Ledger Entry", {
// refresh: function(frm) {
// }
});
| 2302_79757062/hrms | hrms/hr/doctype/leave_ledger_entry/leave_ledger_entry.js | JavaScript | agpl-3.0 | 203 |
# Copyright (c) 2019, 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 DATE_FORMAT, flt, get_link_to_form, getdate, today
class LeaveLedgerEntry(Document):
def valid... | 2302_79757062/hrms | hrms/hr/doctype/leave_ledger_entry/leave_ledger_entry.py | Python | agpl-3.0 | 6,940 |
frappe.listview_settings["Leave Ledger Entry"] = {
onload: function (listview) {
if (listview.page.fields_dict.transaction_type) {
listview.page.fields_dict.transaction_type.get_query = function () {
return {
filters: {
name: [
"in",
["Leave Allocation", "Leave Application", "Leave En... | 2302_79757062/hrms | hrms/hr/doctype/leave_ledger_entry/leave_ledger_entry_list.js | JavaScript | agpl-3.0 | 373 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Leave Period", {
from_date: (frm) => {
if (frm.doc.from_date && !frm.doc.to_date) {
var a_year_from_start = frappe.datetime.add_months(frm.doc.from_date, 12);
frm.set_val... | 2302_79757062/hrms | hrms/hr/doctype/leave_period/leave_period.js | JavaScript | agpl-3.0 | 541 |
# 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 validate_overlap
class LeavePeriod(Document):
def validate... | 2302_79757062/hrms | hrms/hr/doctype/leave_period/leave_period.py | Python | agpl-3.0 | 574 |
from frappe import _
def get_data():
return {
"fieldname": "leave_period",
"transactions": [{"label": _("Transactions"), "items": ["Leave Allocation"]}],
}
| 2302_79757062/hrms | hrms/hr/doctype/leave_period/leave_period_dashboard.py | Python | agpl-3.0 | 164 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Leave Policy", {});
frappe.ui.form.on("Leave Policy Detail", {
leave_type: function (frm, cdt, cdn) {
var child = locals[cdt][cdn];
if (child.leave_type) {
frappe.call({
... | 2302_79757062/hrms | hrms/hr/doctype/leave_policy/leave_policy.js | JavaScript | agpl-3.0 | 763 |
# 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
class LeavePolicy(Document):
def validate(self):
if self.leave_policy_details:
for lp_detail in self.leave_policy... | 2302_79757062/hrms | hrms/hr/doctype/leave_policy/leave_policy.py | Python | agpl-3.0 | 680 |
from frappe import _
def get_data():
return {
"fieldname": "leave_policy",
"transactions": [
{"label": _("Leaves"), "items": ["Leave Policy Assignment", "Leave Allocation"]},
],
}
| 2302_79757062/hrms | hrms/hr/doctype/leave_policy/leave_policy_dashboard.py | Python | agpl-3.0 | 193 |
// Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Leave Policy Assignment", {
onload: function (frm) {
frm.ignore_doctypes_on_cancel_all = ["Leave Ledger Entry"];
frm.set_query("leave_policy", function () {
return {
... | 2302_79757062/hrms | hrms/hr/doctype/leave_policy_assignment/leave_policy_assignment.js | JavaScript | agpl-3.0 | 1,820 |
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import json
import frappe
from frappe import _, bold
from frappe.model.document import Document
from frappe.utils import (
add_months,
cint,
comma_and,
date_diff,
flt,
formatdate,
get_first_d... | 2302_79757062/hrms | hrms/hr/doctype/leave_policy_assignment/leave_policy_assignment.py | Python | agpl-3.0 | 11,158 |
from frappe import _
def get_data():
return {
"fieldname": "leave_policy_assignment",
"transactions": [
{"label": _("Leaves"), "items": ["Leave Allocation"]},
],
}
| 2302_79757062/hrms | hrms/hr/doctype/leave_policy_assignment/leave_policy_assignment_dashboard.py | Python | agpl-3.0 | 177 |
frappe.listview_settings["Leave Policy Assignment"] = {
onload: function (list_view) {
list_view.page.add_inner_button(__("Bulk Leave Policy Assignment"), function () {
frappe.set_route("Form", "Leave Control Panel");
});
},
};
| 2302_79757062/hrms | hrms/hr/doctype/leave_policy_assignment/leave_policy_assignment_list.js | JavaScript | agpl-3.0 | 237 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Leave Policy Detail", {
refresh: function (frm) {},
});
| 2302_79757062/hrms | hrms/hr/doctype/leave_policy_detail/leave_policy_detail.js | JavaScript | agpl-3.0 | 198 |
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from frappe.model.document import Document
class LeavePolicyDetail(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/leave_policy_detail/leave_policy_detail.py | Python | agpl-3.0 | 207 |
frappe.ui.form.on("Leave Type", {
refresh: function (frm) {},
});
frappe.tour["Leave Type"] = [
{
fieldname: "max_leaves_allowed",
title: "Maximum Leave Allocation Allowed",
description: __(
"This field allows you to set the maximum number of leaves that can be allocated annually for this Leave Type while c... | 2302_79757062/hrms | hrms/hr/doctype/leave_type/leave_type.js | JavaScript | agpl-3.0 | 1,707 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
import frappe
from frappe import _, bold
from frappe.model.document import Document
from frappe.utils import today
class LeaveType(Document):
def validate(self):
self.validate_lwp()
se... | 2302_79757062/hrms | hrms/hr/doctype/leave_type/leave_type.py | Python | agpl-3.0 | 1,985 |
def get_data():
return {
"fieldname": "leave_type",
"transactions": [
{
"items": ["Leave Allocation", "Leave Application"],
},
{"items": ["Attendance", "Leave Encashment"]},
],
}
| 2302_79757062/hrms | hrms/hr/doctype/leave_type/leave_type_dashboard.py | Python | agpl-3.0 | 200 |
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Offer Term", {
refresh: function (frm) {},
});
| 2302_79757062/hrms | hrms/hr/doctype/offer_term/offer_term.js | JavaScript | agpl-3.0 | 189 |
# 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 OfferTerm(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/offer_term/offer_term.py | Python | agpl-3.0 | 216 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Purpose of Travel", {
refresh: function (frm) {},
});
| 2302_79757062/hrms | hrms/hr/doctype/purpose_of_travel/purpose_of_travel.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 PurposeofTravel(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/purpose_of_travel/purpose_of_travel.py | Python | agpl-3.0 | 205 |
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("PWA Notification", {
// refresh(frm) {
// },
// });
| 2302_79757062/hrms | hrms/hr/doctype/pwa_notification/pwa_notification.js | JavaScript | agpl-3.0 | 199 |
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import frappe
from frappe.model.document import Document
import hrms
class PWANotification(Document):
def on_update(self):
hrms.refetch_resource("hrms:notifications", self.to_user)
def after_in... | 2302_79757062/hrms | hrms/hr/doctype/pwa_notification/pwa_notification.py | Python | agpl-3.0 | 1,346 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Shift Assignment", {
refresh: function (frm) {},
});
| 2302_79757062/hrms | hrms/hr/doctype/shift_assignment/shift_assignment.js | JavaScript | agpl-3.0 | 195 |
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from datetime import datetime, timedelta
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.query_builder import Criterion
from frappe.utils import add_days, c... | 2302_79757062/hrms | hrms/hr/doctype/shift_assignment/shift_assignment.py | Python | agpl-3.0 | 22,626 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.views.calendar["Shift Assignment"] = {
field_map: {
start: "start_date",
end: "end_date",
id: "name",
docstatus: 1,
allDay: "allDay",
convertToUserTz: "convertToUserTz",
},
get... | 2302_79757062/hrms | hrms/hr/doctype/shift_assignment/shift_assignment_calendar.js | JavaScript | agpl-3.0 | 403 |
frappe.listview_settings["Shift Assignment"] = {
onload: function (list_view) {
list_view.page.add_inner_button(
__("Shift Assignment Tool"),
function () {
frappe.set_route("Form", "Shift Assignment Tool");
},
__("View"),
);
list_view.page.add_inner_button(
__("Roster"),
function () {
... | 2302_79757062/hrms | hrms/hr/doctype/shift_assignment/shift_assignment_list.js | JavaScript | agpl-3.0 | 390 |
// Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("Shift Assignment Schedule", {
// refresh(frm) {
// },
// });
| 2302_79757062/hrms | hrms/hr/doctype/shift_assignment_schedule/shift_assignment_schedule.js | JavaScript | agpl-3.0 | 208 |
# Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import frappe
from frappe.model.document import Document
from frappe.utils import add_days, get_weekday, nowdate
from hrms.hr.doctype.shift_assignment_tool.shift_assignment_tool import create_shift_a... | 2302_79757062/hrms | hrms/hr/doctype/shift_assignment_schedule/shift_assignment_schedule.py | Python | agpl-3.0 | 2,057 |
// Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Shift Assignment Tool", {
setup(frm) {
hrms.setup_employee_filter_group(frm);
},
refresh(frm) {
frm.page.clear_indicator();
frm.disable_save();
frm.trigger("set_primar... | 2302_79757062/hrms | hrms/hr/doctype/shift_assignment_tool/shift_assignment_tool.js | JavaScript | agpl-3.0 | 6,676 |
# Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from datetime import timedelta
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.query_builder import Case, Interval
from frappe.query_builder.terms import Sub... | 2302_79757062/hrms | hrms/hr/doctype/shift_assignment_tool/shift_assignment_tool.py | Python | agpl-3.0 | 8,014 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Shift Request", {
setup: function (frm) {
frm.set_query("approver", function () {
return {
query: "hrms.hr.doctype.department_approver.department_approver.get_approvers"... | 2302_79757062/hrms | hrms/hr/doctype/shift_request/shift_request.js | JavaScript | agpl-3.0 | 483 |
# 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.query_builder import Criterion
from frappe.utils import get_link_to_form
from hrms.hr.doctype.shift_assignme... | 2302_79757062/hrms | hrms/hr/doctype/shift_request/shift_request.py | Python | agpl-3.0 | 4,085 |
def get_data():
return {
"fieldname": "shift_request",
"transactions": [
{"items": ["Shift Assignment"]},
],
}
| 2302_79757062/hrms | hrms/hr/doctype/shift_request/shift_request_dashboard.py | Python | agpl-3.0 | 122 |
frappe.listview_settings["Shift Request"] = {
onload: function (list_view) {
list_view.page.add_inner_button(__("Shift Assignment Tool"), function () {
const doc = frappe.model.get_new_doc("Shift Assignment Tool");
doc.action = "Process Shift Requests";
frappe.set_route("Form", "Shift Assignment Tool", doc.... | 2302_79757062/hrms | hrms/hr/doctype/shift_request/shift_request_list.js | JavaScript | agpl-3.0 | 340 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Shift Type", {
refresh: function (frm) {
if (frm.doc.__islocal) return;
frm.add_custom_button(
__("Bulk Assign Shift"),
() => {
const doc = frappe.model.get_new_do... | 2302_79757062/hrms | hrms/hr/doctype/shift_type/shift_type.js | JavaScript | agpl-3.0 | 1,494 |
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from datetime import datetime, timedelta
from itertools import groupby
import frappe
from frappe.model.document import Document
from frappe.utils import cint, create_batch, get_datetime, get_time, g... | 2302_79757062/hrms | hrms/hr/doctype/shift_type/shift_type.py | Python | agpl-3.0 | 9,986 |
def get_data():
return {
"fieldname": "shift",
"non_standard_fieldnames": {"Shift Request": "shift_type", "Shift Assignment": "shift_type"},
"transactions": [{"items": ["Attendance", "Employee Checkin", "Shift Request", "Shift Assignment"]}],
}
| 2302_79757062/hrms | hrms/hr/doctype/shift_type/shift_type_dashboard.py | Python | agpl-3.0 | 253 |
frappe.listview_settings["Shift Type"] = {
onload: function (list_view) {
list_view.page.add_inner_button(__("Shift Assignment Tool"), function () {
frappe.set_route("Form", "Shift Assignment Tool");
});
},
};
| 2302_79757062/hrms | hrms/hr/doctype/shift_type/shift_type_list.js | JavaScript | agpl-3.0 | 219 |
// Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Skill", {
// refresh: function(frm) {
// }
});
| 2302_79757062/hrms | hrms/hr/doctype/skill/skill.js | JavaScript | agpl-3.0 | 190 |
# 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 Skill(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/skill/skill.py | Python | agpl-3.0 | 211 |
# 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 SkillAssessment(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/skill_assessment/skill_assessment.py | Python | agpl-3.0 | 221 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Staffing Plan", {
setup: function (frm) {
frm.set_query("designation", "staffing_details", function () {
let designations = [];
(frm.doc.staffing_details || []).forEach(f... | 2302_79757062/hrms | hrms/hr/doctype/staffing_plan/staffing_plan.js | JavaScript | agpl-3.0 | 4,167 |
# 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 cint, flt, getdate, nowdate
from frappe.utils.nestedset import get_descendants_of
class Subsid... | 2302_79757062/hrms | hrms/hr/doctype/staffing_plan/staffing_plan.py | Python | agpl-3.0 | 8,818 |
def get_data():
return {
"fieldname": "staffing_plan",
"transactions": [{"items": ["Job Opening"]}],
}
| 2302_79757062/hrms | hrms/hr/doctype/staffing_plan/staffing_plan_dashboard.py | Python | agpl-3.0 | 109 |
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from frappe.model.document import Document
class StaffingPlanDetail(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/staffing_plan_detail/staffing_plan_detail.py | Python | agpl-3.0 | 208 |
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Training Event", {
onload_post_render: function (frm) {
frm.get_field("employees").grid.set_multiple_add("employee");
},
refresh: function (frm) {
if (!frm.doc.__islocal) {... | 2302_79757062/hrms | hrms/hr/doctype/training_event/training_event.js | JavaScript | agpl-3.0 | 1,217 |
# Copyright (c) 2015, 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 time_diff_in_seconds
from erpnext.setup.doctype.employee.employee import get_employee_emails
... | 2302_79757062/hrms | hrms/hr/doctype/training_event/training_event.py | Python | agpl-3.0 | 1,137 |
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
frappe.views.calendar["Training Event"] = {
field_map: {
start: "start_time",
end: "end_time",
id: "name",
title: "event_name",
allDay: "allDay",
},
gantt: true,
get_events_met... | 2302_79757062/hrms | hrms/hr/doctype/training_event/training_event_calendar.js | JavaScript | agpl-3.0 | 363 |
def get_data():
return {
"fieldname": "training_event",
"transactions": [
{"items": ["Training Result", "Training Feedback"]},
],
}
| 2302_79757062/hrms | hrms/hr/doctype/training_event/training_event_dashboard.py | Python | agpl-3.0 | 143 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from frappe.model.document import Document
class TrainingEventEmployee(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/training_event_employee/training_event_employee.py | Python | agpl-3.0 | 211 |
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Training Feedback", {
onload: function (frm) {
frm.add_fetch("training_event", "course", "course");
frm.add_fetch("training_event", "event_name", "event_name");
frm.add_fet... | 2302_79757062/hrms | hrms/hr/doctype/training_feedback/training_feedback.js | JavaScript | agpl-3.0 | 382 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import frappe
from frappe import _
from frappe.model.document import Document
class TrainingFeedback(Document):
def validate(self):
training_event = frappe.get_doc("Training Event", self.trainin... | 2302_79757062/hrms | hrms/hr/doctype/training_feedback/training_feedback.py | Python | agpl-3.0 | 1,417 |
// Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Training Program", {});
| 2302_79757062/hrms | hrms/hr/doctype/training_program/training_program.js | JavaScript | agpl-3.0 | 165 |
# Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from frappe.model.document import Document
class TrainingProgram(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/training_program/training_program.py | Python | agpl-3.0 | 205 |
from frappe import _
def get_data():
return {
"fieldname": "training_program",
"transactions": [
{"label": _("Training Events"), "items": ["Training Event"]},
],
}
| 2302_79757062/hrms | hrms/hr/doctype/training_program/training_program_dashboard.py | Python | agpl-3.0 | 177 |
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Training Result", {
onload: function (frm) {
frm.trigger("training_event");
},
training_event: function (frm) {
frm.trigger("training_event");
},
training_event: functi... | 2302_79757062/hrms | hrms/hr/doctype/training_result/training_result.js | JavaScript | agpl-3.0 | 974 |
# Copyright (c) 2015, 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 erpnext.setup.doctype.employee.employee import get_employee_emails
class TrainingResult(Document):
def validate(... | 2302_79757062/hrms | hrms/hr/doctype/training_result/training_result.py | Python | agpl-3.0 | 1,026 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from frappe.model.document import Document
class TrainingResultEmployee(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/training_result_employee/training_result_employee.py | Python | agpl-3.0 | 212 |
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from frappe.model.document import Document
class TravelItinerary(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/travel_itinerary/travel_itinerary.py | Python | agpl-3.0 | 205 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Travel Request", {
refresh: function (frm) {},
});
| 2302_79757062/hrms | hrms/hr/doctype/travel_request/travel_request.js | JavaScript | agpl-3.0 | 193 |
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from frappe.model.document import Document
from hrms.hr.utils import validate_active_employee
class TravelRequest(Document):
def validate(self):
validate_active_employee(self.employee)
| 2302_79757062/hrms | hrms/hr/doctype/travel_request/travel_request.py | Python | agpl-3.0 | 312 |
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from frappe.model.document import Document
class TravelRequestCosting(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/travel_request_costing/travel_request_costing.py | Python | agpl-3.0 | 210 |
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
frappe.provide("hrms.hr");
hrms.hr.AttendanceControlPanel = class AttendanceControlPanel extends frappe.ui.form.Controller {
onload() {
this.frm.set_value("att_fr_date", frappe.datetime.... | 2302_79757062/hrms | hrms/hr/doctype/upload_attendance/upload_attendance.js | JavaScript | agpl-3.0 | 2,493 |
# 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.utils import add_days, cstr, date_diff, getdate
fr... | 2302_79757062/hrms | hrms/hr/doctype/upload_attendance/upload_attendance.py | Python | agpl-3.0 | 6,343 |
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Vehicle Log", {
setup: function (frm) {
frm.set_query("employee", function () {
return {
filters: {
status: "Active",
},
};
});
},
refresh: function (frm... | 2302_79757062/hrms | hrms/hr/doctype/vehicle_log/vehicle_log.js | JavaScript | agpl-3.0 | 880 |
# Copyright (c) 2015, 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
class VehicleLog(Document):
def validate(self):
if flt(self.odometer) < flt(self.last_o... | 2302_79757062/hrms | hrms/hr/doctype/vehicle_log/vehicle_log.py | Python | agpl-3.0 | 1,854 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from frappe.model.document import Document
class VehicleService(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/vehicle_service/vehicle_service.py | Python | agpl-3.0 | 204 |
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Vehicle Service Item", {
// refresh: function(frm) {
// }
});
| 2302_79757062/hrms | hrms/hr/doctype/vehicle_service_item/vehicle_service_item.js | JavaScript | agpl-3.0 | 205 |
# 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 VehicleServiceItem(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/vehicle_service_item/vehicle_service_item.py | Python | agpl-3.0 | 223 |
frappe.ui.form.on(cur_frm.doctype, {
setup: function (frm) {
frm.set_query("employee", function () {
return {
filters: {
status: "Active",
},
};
});
},
onload: function (frm) {
if (frm.doc.__islocal && !frm.doc.amended_from) frm.trigger("clear_property_table");
},
employee: function (frm... | 2302_79757062/hrms | hrms/hr/employee_property_update.js | JavaScript | agpl-3.0 | 5,236 |
# import frappe
def get_context(context):
# do your magic here
pass
| 2302_79757062/hrms | hrms/hr/notification/exit_interview_scheduled/exit_interview_scheduled.py | Python | agpl-3.0 | 72 |
<p>{{ _("Hello") }},</p>
<p>You attended training {{ frappe.utils.get_link_to_form(
"Training Event", doc.training_event) }}</p>
<p>{{ _("Please share your feedback to the training by clicking on 'Training Feedback' and then 'New'") }}</p>
| 2302_79757062/hrms | hrms/hr/notification/training_feedback/training_feedback.html | HTML | agpl-3.0 | 243 |
def get_context(context):
# do your magic here
pass
| 2302_79757062/hrms | hrms/hr/notification/training_feedback/training_feedback.py | Python | agpl-3.0 | 54 |
<table class="panel-header" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr height="10"></tr>
<tr>
<td width="15"></td>
<td>
<div class="text-medium text-muted">
<span>{{_("Training Event:")}} {{ doc.event_name }}</span>
</div>
</td>
... | 2302_79757062/hrms | hrms/hr/notification/training_scheduled/training_scheduled.html | HTML | agpl-3.0 | 1,780 |
def get_context(context):
# do your magic here
pass
| 2302_79757062/hrms | hrms/hr/notification/training_scheduled/training_scheduled.py | Python | agpl-3.0 | 54 |
frappe.pages["organizational-chart"].on_page_load = function (wrapper) {
frappe.ui.make_app_page({
parent: wrapper,
title: __("Organizational Chart"),
single_column: true,
});
$(wrapper).bind("show", () => {
frappe.require("hierarchy-chart.bundle.js", () => {
let organizational_chart;
let method = "hr... | 2302_79757062/hrms | hrms/hr/page/organizational_chart/organizational_chart.js | JavaScript | agpl-3.0 | 683 |
import frappe
from frappe.query_builder.functions import Count
@frappe.whitelist()
def get_children(parent=None, company=None, exclude_node=None):
filters = [["status", "=", "Active"]]
if company and company != "All Companies":
filters.append(["company", "=", company])
if parent and company and parent != compan... | 2302_79757062/hrms | hrms/hr/page/organizational_chart/organizational_chart.py | Python | agpl-3.0 | 1,181 |
<div class="row activity-row" data-creation="{%= creation.split(" ")[0] + " 00:00:00" %}">
<div class="col-xs-3 text-right activity-date"><span class="{%= date_class %}">
{%= date_sep || "" %}</span></div>
<div class="col-xs-9 activity-message"
title="{%= by %} / {%= frappe.datetime.str_to_user(creation) %}">
<... | 2302_79757062/hrms | hrms/hr/page/team_updates/team_update_row.html | HTML | agpl-3.0 | 502 |
.date-indicator {
background: none;
font-size: 12px;
vertical-align: middle;
font-weight: bold;
color: #6c7680;
}
.date-indicator::after {
margin: 0 -4px 0 12px;
content: "";
display: inline-block;
height: 8px;
width: 8px;
border-radius: 8px;
background: #d1d8dd;
}
.date-indicator.blue {
color: #5e64ff;
}... | 2302_79757062/hrms | hrms/hr/page/team_updates/team_updates.css | CSS | agpl-3.0 | 828 |
frappe.pages["team-updates"].on_page_load = function (wrapper) {
var page = frappe.ui.make_app_page({
parent: wrapper,
title: __("Team Updates"),
single_column: true,
});
frappe.team_updates.make(page);
frappe.team_updates.run();
if (frappe.model.can_read("Daily Work Summary Group")) {
page.add_menu_item... | 2302_79757062/hrms | hrms/hr/page/team_updates/team_updates.js | JavaScript | agpl-3.0 | 2,297 |
from email_reply_parser import EmailReplyParser
import frappe
@frappe.whitelist()
def get_data(start=0):
# frappe.only_for('Employee', 'System Manager')
data = frappe.get_all(
"Communication",
fields=("content", "text_content", "sender", "creation"),
filters=dict(reference_doctype="Daily Work Summary"),
or... | 2302_79757062/hrms | hrms/hr/page/team_updates/team_updates.py | Python | agpl-3.0 | 613 |
{%- from "templates/print_formats/standard_macros.html" import add_header -%}
<div class="text-center" style="margin-bottom: 10%;"><h3>Appointment Letter</h3></div>
<div class ='row' style="margin-bottom: 5%;">
<div class = "col-sm-6">
<b>{{ doc.applicant_name }},</b>
</div>
<div class="col-sm-6">
... | 2302_79757062/hrms | hrms/hr/print_format/standard_appointment_letter/standard_appointment_letter.html | HTML | agpl-3.0 | 1,085 |
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
/* eslint-disable */
frappe.query_reports["Appraisal Overview"] = {
filters: [
{
fieldname: "company",
label: __("Company"),
fieldtype: "Link",
options: "Company",
reqd: 1,
defa... | 2302_79757062/hrms | hrms/hr/report/appraisal_overview/appraisal_overview.js | JavaScript | agpl-3.0 | 846 |