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 |
|---|---|---|---|---|---|
@import "./assets/Inter/inter.css";
@import "frappe-ui/src/style.css";
ion-modal {
--height: auto;
}
input:disabled {
--webkit-text-fill-color: var(--tw-text-color);
opacity: 0.9; /* required on iOS */
color: var(--tw-text-color);
}
/* For Webkit-based browsers (Chrome, Safari and Opera) */
input::-webkit-date-a... | 2302_79757062/hrms | frontend/src/main.css | CSS | agpl-3.0 | 601 |
import { createApp } from "vue"
import App from "./App.vue"
import router from "./router"
import { initSocket } from "./socket"
import {
Button,
Input,
setConfig,
frappeRequest,
resourcesPlugin,
FormControl,
} from "frappe-ui"
import EmptyState from "@/components/EmptyState.vue"
import { IonicVue } from "@ionic... | 2302_79757062/hrms | frontend/src/main.js | JavaScript | agpl-3.0 | 3,466 |
const routes = [
{
name: "EmployeeAdvanceListView",
path: "/employee-advances",
component: () => import("@/views/employee_advance/List.vue"),
},
{
name: "EmployeeAdvanceFormView",
path: "/employee-advances/new",
component: () => import("@/views/employee_advance/Form.vue"),
},
{
name: "EmployeeAdvance... | 2302_79757062/hrms | frontend/src/router/advances.js | JavaScript | agpl-3.0 | 475 |
const routes = [
{
name: "ExpenseClaimListView",
path: "/expense-claims",
component: () => import("@/views/expense_claim/List.vue"),
},
{
name: "ExpenseClaimFormView",
path: "/expense-claims/new",
component: () => import("@/views/expense_claim/Form.vue"),
},
{
name: "ExpenseClaimDetailView",
path: ... | 2302_79757062/hrms | frontend/src/router/claims.js | JavaScript | agpl-3.0 | 448 |
import { createRouter, createWebHistory } from "@ionic/vue-router"
import TabbedView from "@/views/TabbedView.vue"
import leaveRoutes from "./leaves"
import claimRoutes from "./claims"
import employeeAdvanceRoutes from "./advances"
import salarySlipRoutes from "./salary_slips"
const routes = [
{
path: "/",
redir... | 2302_79757062/hrms | frontend/src/router/index.js | JavaScript | agpl-3.0 | 1,691 |
const routes = [
{
name: "LeaveApplicationListView",
path: "/leave-applications",
component: () => import("@/views/leave/List.vue"),
},
{
name: "LeaveApplicationFormView",
path: "/leave-applications/new",
component: () => import("@/views/leave/Form.vue"),
},
{
name: "LeaveApplicationDetailView",
pa... | 2302_79757062/hrms | frontend/src/router/leaves.js | JavaScript | agpl-3.0 | 448 |
const routes = [
{
path: "/salary-slips/:id",
name: "SalarySlipDetailView",
props: true,
component: () => import("@/views/salary_slip/Detail.vue"),
},
]
export default routes
| 2302_79757062/hrms | frontend/src/router/salary_slips.js | JavaScript | agpl-3.0 | 186 |
import { io } from "socket.io-client"
import { socketio_port } from "../../../../sites/common_site_config.json"
import { getCachedListResource } from "frappe-ui/src/resources/listResource"
import { getCachedResource } from "frappe-ui/src/resources/resources"
export function initSocket() {
let host = window.location.... | 2302_79757062/hrms | frontend/src/socket.js | JavaScript | agpl-3.0 | 843 |
/* Ionic Variables and Theming. For more info, please see:
http://ionicframework.com/docs/theming/ */
/** Ionic CSS Variables **/
:root {
--ion-background-color: #f4f5f6;
--ion-font-family: "InterVar", sans-serif;
--ion-tab-bar-color-selected: #525252;
--ion-tab-bar-background-focused: #e2e2e2;
/** primary **/
... | 2302_79757062/hrms | frontend/src/theme/variables.css | CSS | agpl-3.0 | 2,529 |
import dayjs from "dayjs"
import updateLocale from "dayjs/plugin/updateLocale"
import localizedFormat from "dayjs/plugin/localizedFormat"
import relativeTime from "dayjs/esm/plugin/relativeTime"
import isToday from "dayjs/plugin/isToday"
import isYesterday from "dayjs/plugin/isYesterday"
import isBetween from "dayjs/pl... | 2302_79757062/hrms | frontend/src/utils/dayjs.js | JavaScript | agpl-3.0 | 515 |
export const showErrorAlert = async (message) => {
const alert = await alertController.create({
header: "Error",
message,
buttons: ["OK"],
})
await alert.present()
}
import { alertController } from "@ionic/vue"
| 2302_79757062/hrms | frontend/src/utils/dialogs.js | JavaScript | agpl-3.0 | 222 |
import { createDocumentResource } from "frappe-ui"
const settings = createDocumentResource({
doctype: "System Settings",
name: "System Settings",
auto: false,
})
export const formatCurrency = (value, currency) => {
if (!currency) return value
// hack: if value contains a space, it is already formatted
if (valu... | 2302_79757062/hrms | frontend/src/utils/formatters.js | JavaScript | agpl-3.0 | 794 |
import { isPlatform } from "@ionic/vue"
import { createAnimation, iosTransitionAnimation } from "@ionic/core"
/**
* on iOS, the back swipe gesture triggers the animation twice:
* the safari's default back swipe animation & ionic's animation
* The config here takes care of the same
*/
export const animationBuilder ... | 2302_79757062/hrms | frontend/src/utils/ionicConfig.js | JavaScript | agpl-3.0 | 967 |
export const isChrome = () =>
navigator.userAgent.toLowerCase().includes("chrome")
export const showNotification = (payload) => {
const registration = window.frappePushNotification.serviceWorkerRegistration
if (!registration) return
const notificationTitle = payload?.data?.title
const notificationOptions = {
b... | 2302_79757062/hrms | frontend/src/utils/pushNotifications.js | JavaScript | agpl-3.0 | 808 |
<template>
<ion-page>
<ion-content class="ion-padding">
<div class="flex flex-col h-screen w-screen">
<div class="w-full sm:w-96">
<header
class="flex flex-row bg-white shadow-sm py-4 px-3 items-center justify-between border-b sticky top-0 z-10"
>
<div class="flex flex-row items-center">... | 2302_79757062/hrms | frontend/src/views/AppSettings.vue | Vue | agpl-3.0 | 3,783 |
<template>
<BaseLayout>
<template #body>
<div class="flex flex-col items-center my-7 p-4 gap-7">
<CheckInPanel />
<QuickLinks :items="quickLinks" title="Quick Links" />
<RequestPanel />
</div>
</template>
</BaseLayout>
</template>
<script setup>
import { markRaw } from "vue"
import CheckInPane... | 2302_79757062/hrms | frontend/src/views/Home.vue | Vue | agpl-3.0 | 1,218 |
<template>
<ion-page>
<ion-content class="ion-padding">
<div class="flex h-screen w-screen flex-col justify-center bg-white">
<Dialog
:options="{
title: 'Login Failed',
message: `No active employee found associated with the email ID ${session?.user}. Try logging in with your employee email ID... | 2302_79757062/hrms | frontend/src/views/InvalidEmployee.vue | Vue | agpl-3.0 | 931 |
<template>
<ion-page>
<ion-content class="ion-padding">
<div class="flex h-screen w-screen flex-col justify-center bg-white">
<div class="flex flex-col mx-auto gap-3 items-center">
<FrappeHRLogo class="h-8 w-8" />
<div class="text-3xl font-semibold text-gray-900 text-center">Login to Frappe HR</div>... | 2302_79757062/hrms | frontend/src/views/Login.vue | Vue | agpl-3.0 | 3,894 |
<template>
<ion-page>
<ion-content class="ion-padding">
<div class="flex flex-col h-screen w-screen">
<div class="w-full sm:w-96">
<header
class="flex flex-row bg-white shadow-sm py-4 px-3 items-center justify-between border-b sticky top-0 z-10"
>
<div class="flex flex-row items-center">... | 2302_79757062/hrms | frontend/src/views/Notifications.vue | Vue | agpl-3.0 | 3,815 |
<template>
<ion-page>
<ion-content class="ion-padding">
<div class="flex flex-col h-screen w-screen">
<div class="w-full sm:w-96">
<header
class="flex flex-row bg-white shadow-sm py-4 px-3 items-center justify-between border-b sticky top-0 z-10"
>
<div class="flex flex-row items-center">... | 2302_79757062/hrms | frontend/src/views/Profile.vue | Vue | agpl-3.0 | 6,751 |
<template>
<ion-page>
<ion-tabs>
<ion-router-outlet></ion-router-outlet>
<BottomTabs />
</ion-tabs>
</ion-page>
</template>
<script setup>
import { IonTabs, IonPage, IonRouterOutlet } from "@ionic/vue"
import BottomTabs from "@/components/BottomTabs.vue"
</script>
| 2302_79757062/hrms | frontend/src/views/TabbedView.vue | Vue | agpl-3.0 | 278 |
<template>
<ion-page>
<ion-content :fullscreen="true">
<FormView
v-if="formFields.data"
doctype="Employee Advance"
v-model="employeeAdvance"
:isSubmittable="true"
:fields="formFields.data"
:id="props.id"
:showAttachmentView="true"
@validateForm="validateForm"
/>
</ion-content>... | 2302_79757062/hrms | frontend/src/views/employee_advance/Form.vue | Vue | agpl-3.0 | 3,568 |
<template>
<ion-page>
<ListView
doctype="Employee Advance"
pageTitle="Employee Advances"
:tabButtons="TAB_BUTTONS"
:fields="EMPLOYEE_ADVANCE_FIELDS"
:filterConfig="FILTER_CONFIG"
/>
</ion-page>
</template>
<script setup>
import { IonPage } from "@ionic/vue"
import ListView from "@/components/ListV... | 2302_79757062/hrms | frontend/src/views/employee_advance/List.vue | Vue | agpl-3.0 | 1,302 |
<template>
<BaseLayout pageTitle="Expense Claims">
<template #body>
<div class="flex flex-col mt-7 mb-7 p-4 gap-7">
<ExpenseClaimSummary />
<div class="w-full">
<router-link
:to="{ name: 'ExpenseClaimFormView' }"
v-slot="{ navigate }"
>
<Button
@click="navigate"
... | 2302_79757062/hrms | frontend/src/views/expense_claim/Dashboard.vue | Vue | agpl-3.0 | 1,703 |
<template>
<ion-page>
<ion-content :fullscreen="true">
<FormView
v-if="formFields.data"
doctype="Expense Claim"
v-model="expenseClaim"
:isSubmittable="true"
:fields="formFields.data"
:id="props.id"
:tabbedView="true"
:tabs="tabs"
:showAttachmentView="true"
@validateForm="va... | 2302_79757062/hrms | frontend/src/views/expense_claim/Form.vue | Vue | agpl-3.0 | 10,289 |
<template>
<ion-page>
<ListView
doctype="Expense Claim"
pageTitle="Claim History"
:tabButtons="TAB_BUTTONS"
:fields="EXPENSE_CLAIM_FIELDS"
groupBy="`tabExpense Claim`.name"
:filterConfig="FILTER_CONFIG"
/>
</ion-page>
</template>
<script setup>
import { IonPage } from "@ionic/vue"
import ListVi... | 2302_79757062/hrms | frontend/src/views/expense_claim/List.vue | Vue | agpl-3.0 | 1,464 |
<template>
<BaseLayout pageTitle="Leaves & Holidays">
<template #body>
<div class="flex flex-col items-center mt-7 mb-7 py-4">
<LeaveBalance />
<div class="flex flex-col gap-7 mt-5 px-4 w-full">
<router-link
:to="{ name: 'LeaveApplicationFormView' }"
v-slot="{ navigate }"
>
... | 2302_79757062/hrms | frontend/src/views/leave/Dashboard.vue | Vue | agpl-3.0 | 1,217 |
<template>
<ion-page>
<ion-content :fullscreen="true">
<FormView
v-if="formFields.data"
doctype="Leave Application"
v-model="leaveApplication"
:isSubmittable="true"
:fields="formFields.data"
:id="props.id"
:showAttachmentView="true"
@validateForm="validateForm"
/>
</ion-conten... | 2302_79757062/hrms | frontend/src/views/leave/Form.vue | Vue | agpl-3.0 | 6,572 |
<template>
<ion-page>
<ListView
doctype="Leave Application"
pageTitle="Leave History"
:tabButtons="TAB_BUTTONS"
:fields="LEAVE_FIELDS"
:filterConfig="FILTER_CONFIG"
/>
</ion-page>
</template>
<script setup>
import { IonPage } from "@ionic/vue"
import ListView from "@/components/ListView.vue"
cons... | 2302_79757062/hrms | frontend/src/views/leave/List.vue | Vue | agpl-3.0 | 1,143 |
<template>
<BaseLayout pageTitle="Salary Slips">
<template #body>
<div class="flex flex-col items-center my-7 p-4">
<div class="flex flex-col w-full bg-white rounded py-5 px-3.5 gap-5">
<div v-if="lastSalarySlip" class="flex flex-col w-full gap-1.5">
<span class="text-gray-600 text-sm font-medium l... | 2302_79757062/hrms | frontend/src/views/salary_slip/Dashboard.vue | Vue | agpl-3.0 | 3,430 |
<template>
<ion-page>
<ion-content :fullscreen="true">
<FormView
v-if="formFields.data"
doctype="Salary Slip"
v-model="salarySlip"
:fields="formFields.data"
:id="props.id"
:tabbedView="true"
:tabs="tabs"
:showFormButton="false"
>
<!-- Child Tables -->
<template #earnings... | 2302_79757062/hrms | frontend/src/views/salary_slip/Detail.vue | Vue | agpl-3.0 | 4,006 |
module.exports = {
presets: [require("frappe-ui/src/utils/tailwind.config")],
content: [
"./index.html",
"./src/**/*.{vue,js,ts,jsx,tsx}",
"./node_modules/frappe-ui/src/components/**/*.{vue,js,ts,jsx,tsx}",
"../node_modules/frappe-ui/src/components/**/*.{vue,js,ts,jsx,tsx}",
],
theme: {
extend: {
scree... | 2302_79757062/hrms | frontend/tailwind.config.js | JavaScript | agpl-3.0 | 630 |
import { defineConfig } from "vite"
import vue from "@vitejs/plugin-vue"
import { VitePWA } from "vite-plugin-pwa"
import frappeui from "frappe-ui/vite"
import path from "path"
import fs from "fs"
export default defineConfig({
server: {
port: 8080,
proxy: getProxyOptions(),
},
plugins: [
vue(),
frappeui(),... | 2302_79757062/hrms | frontend/vite.config.js | JavaScript | agpl-3.0 | 2,933 |
import frappe
__version__ = "16.0.0-dev"
def refetch_resource(cache_key: str | list, user=None):
frappe.publish_realtime(
"hrms:refetch_resource",
{"cache_key": cache_key},
user=user or frappe.session.user,
after_commit=True,
)
| 2302_79757062/hrms | hrms/__init__.py | Python | agpl-3.0 | 241 |
import frappe
from frappe import _
from frappe.model import get_permitted_fields
from frappe.model.workflow import get_workflow_name
from frappe.query_builder import Order
from frappe.utils import getdate, strip_html
SUPPORTED_FIELD_TYPES = [
"Link",
"Select",
"Small Text",
"Text",
"Long Text",
"Text Editor",
"... | 2302_79757062/hrms | hrms/api/__init__.py | Python | agpl-3.0 | 17,184 |
import frappe
from frappe import _
from frappe.utils import add_days, date_diff
from erpnext.setup.doctype.employee.employee import get_holiday_list_for_employee
from hrms.hr.doctype.shift_assignment.shift_assignment import ShiftAssignment
from hrms.hr.doctype.shift_assignment_tool.shift_assignment_tool import create... | 2302_79757062/hrms | hrms/api/roster.py | Python | agpl-3.0 | 7,805 |
from frappe import _
def get_data():
return [{"module_name": "HRMS", "type": "module", "label": _("HRMS")}]
| 2302_79757062/hrms | hrms/config/desktop.py | Python | agpl-3.0 | 111 |
"""
Configuration for docs
"""
# source_link = "https://github.com/[org_name]/hrms"
# headline = "App that does everything"
# sub_heading = "Yes, you got that right the first time, everything"
def get_context(context):
context.brand_html = "HRMS"
| 2302_79757062/hrms | hrms/config/docs.py | Python | agpl-3.0 | 251 |
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
import frappe
from frappe import _
from frappe.desk.form import assign_to
from frappe.model.document import Document
from frappe.utils import add_days, flt, unique
from erpnext.setup.doctype.... | 2302_79757062/hrms | hrms/controllers/employee_boarding_controller.py | Python | agpl-3.0 | 5,862 |
# Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
import frappe
from frappe import _
from frappe.utils import add_days, add_months, comma_sep, getdate, today
from erpnext.setup.doctype.employee.employee import get_all_employee_emails, get_em... | 2302_79757062/hrms | hrms/controllers/employee_reminders.py | Python | agpl-3.0 | 9,641 |
app_name = "hrms"
app_title = "Frappe HR"
app_publisher = "Frappe Technologies Pvt. Ltd."
app_description = "Modern HR and Payroll Software"
app_email = "contact@frappe.io"
app_license = "GNU General Public License (v3)"
required_apps = ["frappe/erpnext"]
source_link = "http://github.com/frappe/hrms"
app_logo_url = "/a... | 2302_79757062/hrms | hrms/hooks.py | Python | agpl-3.0 | 11,323 |
frappe.provide("frappe.dashboards.chart_sources");
frappe.dashboards.chart_sources["Employees by Age"] = {
method: "hrms.hr.dashboard_chart_source.employees_by_age.employees_by_age.get_data",
filters: [
{
fieldname: "company",
label: __("Company"),
fieldtype: "Link",
options: "Company",
default: fra... | 2302_79757062/hrms | hrms/hr/dashboard_chart_source/employees_by_age/employees_by_age.js | JavaScript | agpl-3.0 | 374 |
# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from dateutil.relativedelta import relativedelta
import frappe
from frappe import _
from frappe.utils import getdate
from frappe.utils.dashboard import cache_source
@frappe.whitelist()
@ca... | 2302_79757062/hrms | hrms/hr/dashboard_chart_source/employees_by_age/employees_by_age.py | Python | agpl-3.0 | 1,777 |
frappe.provide("frappe.dashboards.chart_sources");
frappe.dashboards.chart_sources["Hiring vs Attrition Count"] = {
method: "hrms.hr.dashboard_chart_source.hiring_vs_attrition_count.hiring_vs_attrition_count.get_data",
filters: [
{
fieldname: "company",
label: __("Company"),
fieldtype: "Link",
options:... | 2302_79757062/hrms | hrms/hr/dashboard_chart_source/hiring_vs_attrition_count/hiring_vs_attrition_count.js | JavaScript | agpl-3.0 | 885 |
# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
import frappe
from frappe import _
from frappe.desk.doctype.dashboard_chart.dashboard_chart import get_result
from frappe.utils import getdate
from frappe.utils.dashboard import cache_source
... | 2302_79757062/hrms | hrms/hr/dashboard_chart_source/hiring_vs_attrition_count/hiring_vs_attrition_count.py | Python | agpl-3.0 | 1,874 |
// Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Appointment Letter", {
appointment_letter_template: function (frm) {
if (frm.doc.appointment_letter_template) {
frappe.call({
method: "hrms.hr.doctype.appointment_letter... | 2302_79757062/hrms | hrms/hr/doctype/appointment_letter/appointment_letter.js | JavaScript | agpl-3.0 | 1,045 |
# 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 AppointmentLetter(Document):
pass
@frappe.whitelist()
def get_appointment_letter_details(template):
body = []
intro = frappe.get_... | 2302_79757062/hrms | hrms/hr/doctype/appointment_letter/appointment_letter.py | Python | agpl-3.0 | 658 |
# 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 AppointmentLettercontent(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/appointment_letter_content/appointment_letter_content.py | Python | agpl-3.0 | 230 |
// Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Appointment Letter Template", {
// refresh: function(frm) {
// }
});
| 2302_79757062/hrms | hrms/hr/doctype/appointment_letter_template/appointment_letter_template.js | JavaScript | agpl-3.0 | 212 |
# 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 AppointmentLetterTemplate(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/appointment_letter_template/appointment_letter_template.py | Python | agpl-3.0 | 231 |
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
frappe.ui.form.on("Appraisal", {
refresh(frm) {
if (!frm.doc.__islocal) {
frm.trigger("add_custom_buttons");
frm.trigger("show_feedback_history");
frm.trigger("setup_chart");
}... | 2302_79757062/hrms | hrms/hr/doctype/appraisal/appraisal.js | JavaScript | agpl-3.0 | 3,467 |
# 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.query_builder.functions import Avg
from frappe.utils import flt, get_link_to_form, now
from hrms.hr.d... | 2302_79757062/hrms | hrms/hr/doctype/appraisal/appraisal.py | Python | agpl-3.0 | 9,422 |
// Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Appraisal Cycle", {
refresh(frm) {
frm.set_query("department", () => {
return {
filters: {
company: frm.doc.company,
},
};
});
frm.trigger("show_custom_... | 2302_79757062/hrms | hrms/hr/doctype/appraisal_cycle/appraisal_cycle.js | JavaScript | agpl-3.0 | 4,169 |
# 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.query_builder.functions import Count
from frappe.query_builder.terms import SubQuery
class AppraisalCycle(Do... | 2302_79757062/hrms | hrms/hr/doctype/appraisal_cycle/appraisal_cycle.py | Python | agpl-3.0 | 7,772 |
# 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 AppraisalGoal(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/appraisal_goal/appraisal_goal.py | Python | agpl-3.0 | 211 |
# 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 AppraisalKRA(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/appraisal_kra/appraisal_kra.py | Python | agpl-3.0 | 217 |
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Appraisal Template", {
setup(frm) {
frm.get_field("rating_criteria").grid.editable_fields = [
{ fieldname: "criteria", columns: 6 },
{ fieldname: "per_weightage", columns... | 2302_79757062/hrms | hrms/hr/doctype/appraisal_template/appraisal_template.js | JavaScript | agpl-3.0 | 340 |
# 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 flt
from hrms.mixins.appraisal import AppraisalMixin
class AppraisalTemplate(Document... | 2302_79757062/hrms | hrms/hr/doctype/appraisal_template/appraisal_template.py | Python | agpl-3.0 | 472 |
# 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 AppraisalTemplateGoal(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/appraisal_template_goal/appraisal_template_goal.py | Python | agpl-3.0 | 219 |
# 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 Appraisee(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/appraisee/appraisee.py | Python | agpl-3.0 | 214 |
// Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
frappe.ui.form.on("Attendance", {
refresh(frm) {
if (frm.doc.__islocal && !frm.doc.attendance_date) {
frm.set_value("attendance_date", frappe.datetime.get_today());
}
frm.set_quer... | 2302_79757062/hrms | hrms/hr/doctype/attendance/attendance.js | JavaScript | agpl-3.0 | 431 |
# 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,
cint,
cstr,
format_date,
get_datetime,
get_link_to_form,
getdate,
no... | 2302_79757062/hrms | hrms/hr/doctype/attendance/attendance.py | Python | agpl-3.0 | 10,435 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.views.calendar["Attendance"] = {
field_map: {
start: "start",
end: "end",
id: "name",
title: "title",
allDay: "allDay",
color: "color",
},
get_css_class: function (data) {
if ... | 2302_79757062/hrms | hrms/hr/doctype/attendance/attendance_calendar.js | JavaScript | agpl-3.0 | 759 |
def get_data():
return {"fieldname": "attendance", "transactions": [{"label": "", "items": ["Employee Checkin"]}]}
| 2302_79757062/hrms | hrms/hr/doctype/attendance/attendance_dashboard.py | Python | agpl-3.0 | 116 |
frappe.listview_settings["Attendance"] = {
add_fields: ["status", "attendance_date"],
get_indicator: function (doc) {
if (["Present", "Work From Home"].includes(doc.status)) {
return [__(doc.status), "green", "status,=," + doc.status];
} else if (["Absent", "On Leave"].includes(doc.status)) {
return [__(do... | 2302_79757062/hrms | hrms/hr/doctype/attendance/attendance_list.js | JavaScript | agpl-3.0 | 5,083 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Attendance Request", {
refresh(frm) {
frm.trigger("show_attendance_warnings");
},
show_attendance_warnings(frm) {
if (!frm.is_new() && frm.doc.docstatus === 0) {
frm.das... | 2302_79757062/hrms | hrms/hr/doctype/attendance_request/attendance_request.js | JavaScript | agpl-3.0 | 679 |
# 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 add_days, date_diff, format_date, get_link_to_form, getdate
from erpnext.setup.doctype.employee... | 2302_79757062/hrms | hrms/hr/doctype/attendance_request/attendance_request.py | Python | agpl-3.0 | 6,016 |
def get_data():
return {"fieldname": "attendance_request", "transactions": [{"items": ["Attendance"]}]}
| 2302_79757062/hrms | hrms/hr/doctype/attendance_request/attendance_request_dashboard.py | Python | agpl-3.0 | 105 |
<div class="form-message yellow">
<div>{{__("Attendance for the following dates will be skipped/overwritten on submission")}}</div>
</div>
<table class="table table-bordered table-hover">
<thead>
<tr>
<th style="width: 20%">{{ __("Date") }}</th>
<th style="width: 20%">{{ __("Action on Submission") }}</th>
... | 2302_79757062/hrms | hrms/hr/doctype/attendance_request/attendance_warnings.html | HTML | agpl-3.0 | 790 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Compensatory Leave Request", {
refresh: function (frm) {
frm.set_query("leave_type", function () {
return {
filters: {
is_compensatory: true,
},
};
});
},... | 2302_79757062/hrms | hrms/hr/doctype/compensatory_leave_request/compensatory_leave_request.js | JavaScript | agpl-3.0 | 514 |
# 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 add_days, cint, date_diff, format_date, get_url_to_list, getdate
from hrms.hr.utils import (
c... | 2302_79757062/hrms | hrms/hr/doctype/compensatory_leave_request/compensatory_leave_request.py | Python | agpl-3.0 | 6,521 |
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Daily Work Summary", {
refresh: function (frm) {},
});
| 2302_79757062/hrms | hrms/hr/doctype/daily_work_summary/daily_work_summary.js | JavaScript | agpl-3.0 | 197 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from email_reply_parser import EmailReplyParser
import frappe
from frappe import _
from frappe.model.document import Document
from frappe.utils import global_date_format
class DailyWorkSummary(Doc... | 2302_79757062/hrms | hrms/hr/doctype/daily_work_summary/daily_work_summary.py | Python | agpl-3.0 | 3,485 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Daily Work Summary Group", {
refresh: function (frm) {
if (!frm.is_new()) {
frm.add_custom_button(__("Daily Work Summary"), function () {
frappe.set_route("List", "Daily... | 2302_79757062/hrms | hrms/hr/doctype/daily_work_summary_group/daily_work_summary_group.js | JavaScript | agpl-3.0 | 356 |
# # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# # For license information, please see license.txt
import frappe
import frappe.utils
from frappe import _
from frappe.model.document import Document
from erpnext.setup.doctype.holiday_list.holiday_list import is_holiday
from hrms.hr.doctype.dai... | 2302_79757062/hrms | hrms/hr/doctype/daily_work_summary_group/daily_work_summary_group.py | Python | agpl-3.0 | 1,769 |
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from frappe.model.document import Document
class DailyWorkSummaryGroupUser(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/daily_work_summary_group_user/daily_work_summary_group_user.py | Python | agpl-3.0 | 215 |
# 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 get_link_to_form
class DepartmentApprover(Document):
pass
@frappe.whitelist()
@frappe.valid... | 2302_79757062/hrms | hrms/hr/doctype/department_approver/department_approver.py | Python | agpl-3.0 | 3,079 |
# 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 DesignationSkill(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/designation_skill/designation_skill.py | Python | agpl-3.0 | 222 |
// Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Employee Advance", {
setup: function (frm) {
frm.set_query("employee", function () {
return {
filters: {
status: "Active",
},
};
});
frm.set_query("adva... | 2302_79757062/hrms | hrms/hr/doctype/employee_advance/employee_advance.js | JavaScript | agpl-3.0 | 5,999 |
# Copyright (c) 2017, 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 Sum
from frappe.utils import flt, nowdate
import erpnext
from erpnext.account... | 2302_79757062/hrms | hrms/hr/doctype/employee_advance/employee_advance.py | Python | agpl-3.0 | 10,360 |
def get_data():
return {
"fieldname": "employee_advance",
"non_standard_fieldnames": {
"Payment Entry": "reference_name",
"Journal Entry": "reference_name",
},
"transactions": [{"items": ["Expense Claim"]}, {"items": ["Payment Entry", "Journal Entry"]}],
}
| 2302_79757062/hrms | hrms/hr/doctype/employee_advance/employee_advance_dashboard.py | Python | agpl-3.0 | 273 |
.top-toolbar {
padding-bottom: 30px;
margin-left: -17px;
}
.bottom-toolbar {
margin-left: -17px;
margin-top: 20px;
}
.btn {
margin-right: 5px;
}
.marked-employee-label {
font-weight: normal;
}
.checkbox {
margin-top: -3px;
}
| 2302_79757062/hrms | hrms/hr/doctype/employee_attendance_tool/employee_attendance_tool.css | CSS | agpl-3.0 | 236 |
frappe.ui.form.on("Employee Attendance Tool", {
refresh(frm) {
frm.trigger("reset_attendance_fields");
frm.trigger("load_employees");
frm.trigger("set_primary_action");
},
onload(frm) {
frm.set_value("date", frappe.datetime.get_today());
},
date(frm) {
frm.trigger("load_employees");
},
department(fr... | 2302_79757062/hrms | hrms/hr/doctype/employee_attendance_tool/employee_attendance_tool.js | JavaScript | agpl-3.0 | 5,708 |
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
import datetime
import json
import frappe
from frappe.model.document import Document
from frappe.utils import getdate
class EmployeeAttendanceTool(Document):
pass
@frappe.whitelist()
def get_em... | 2302_79757062/hrms | hrms/hr/doctype/employee_attendance_tool/employee_attendance_tool.py | Python | agpl-3.0 | 2,264 |
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from frappe.model.document import Document
class EmployeeBoardingActivity(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/employee_boarding_activity/employee_boarding_activity.py | Python | agpl-3.0 | 214 |
// Copyright (c) 2019, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Employee Checkin", {
refresh: async (frm) => {
if (!frm.doc.__islocal) frm.trigger("add_fetch_shift_button");
const allow_geolocation_tracking = await frappe.db.get_single_v... | 2302_79757062/hrms | hrms/hr/doctype/employee_checkin/employee_checkin.js | JavaScript | agpl-3.0 | 2,057 |
# 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 cint, get_datetime
from hrms.hr.doctype.shift_assignment.shift_assignment import (
get_actual_... | 2302_79757062/hrms | hrms/hr/doctype/employee_checkin/employee_checkin.py | Python | agpl-3.0 | 10,142 |
frappe.listview_settings["Employee Checkin"] = {
onload: function (listview) {
listview.page.add_action_item(__("Fetch Shifts"), () => {
const checkins = listview.get_checked_items().map((checkin) => checkin.name);
frappe.call({
method: "hrms.hr.doctype.employee_checkin.employee_checkin.bulk_fetch_shift",
... | 2302_79757062/hrms | hrms/hr/doctype/employee_checkin/employee_checkin_list.js | JavaScript | agpl-3.0 | 392 |
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
// frappe.ui.form.on("Employee Feedback Criteria", {
// refresh(frm) {
// },
// });
| 2302_79757062/hrms | hrms/hr/doctype/employee_feedback_criteria/employee_feedback_criteria.js | JavaScript | agpl-3.0 | 209 |
# 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 EmployeeFeedbackCriteria(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/employee_feedback_criteria/employee_feedback_criteria.py | Python | agpl-3.0 | 229 |
# 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 EmployeeFeedbackRating(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/employee_feedback_rating/employee_feedback_rating.py | Python | agpl-3.0 | 227 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Employee Grade", {
refresh: function (frm) {},
setup: function (frm) {
frm.set_query("default_salary_structure", function () {
return {
filters: {
docstatus: 1,
... | 2302_79757062/hrms | hrms/hr/doctype/employee_grade/employee_grade.js | JavaScript | agpl-3.0 | 488 |
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from frappe.model.document import Document
class EmployeeGrade(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/employee_grade/employee_grade.py | Python | agpl-3.0 | 203 |
def get_data():
return {
"transactions": [
{
"items": ["Employee", "Leave Period"],
},
{"items": ["Employee Onboarding Template", "Employee Separation Template"]},
]
}
| 2302_79757062/hrms | hrms/hr/doctype/employee_grade/employee_grade_dashboard.py | Python | agpl-3.0 | 187 |
// Copyright (c) 2021, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Employee Grievance", {
setup: function (frm) {
frm.set_query("grievance_against_party", function () {
return {
filters: {
name: [
"in",
["Company", "Dep... | 2302_79757062/hrms | hrms/hr/doctype/employee_grievance/employee_grievance.js | JavaScript | agpl-3.0 | 1,124 |
# Copyright (c) 2021, 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
class EmployeeGrievance(Document):
def on_submit(self):
if self.status not in ["Invalid", "Resolved"]:
frapp... | 2302_79757062/hrms | hrms/hr/doctype/employee_grievance/employee_grievance.py | Python | agpl-3.0 | 460 |
frappe.listview_settings["Employee Grievance"] = {
has_indicator_for_draft: 1,
get_indicator: function (doc) {
var colors = {
Open: "red",
Investigated: "orange",
Resolved: "green",
Invalid: "grey",
};
return [__(doc.status), colors[doc.status], "status,=," + doc.status];
},
};
| 2302_79757062/hrms | hrms/hr/doctype/employee_grievance/employee_grievance_list.js | JavaScript | agpl-3.0 | 300 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Employee Health Insurance", {
refresh: function (frm) {},
});
| 2302_79757062/hrms | hrms/hr/doctype/employee_health_insurance/employee_health_insurance.js | JavaScript | agpl-3.0 | 204 |
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from frappe.model.document import Document
class EmployeeHealthInsurance(Document):
pass
| 2302_79757062/hrms | hrms/hr/doctype/employee_health_insurance/employee_health_insurance.py | Python | agpl-3.0 | 213 |
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt
frappe.ui.form.on("Employee Onboarding", {
setup: function (frm) {
frm.set_query("job_applicant", function () {
return {
filters: {
status: "Accepted",
},
};
});
frm.set_q... | 2302_79757062/hrms | hrms/hr/doctype/employee_onboarding/employee_onboarding.js | JavaScript | agpl-3.0 | 2,743 |