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) 2020, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document class EmployeeTaxExemptionDeclarationCategory(Document): pass
2302_79757062/hrms
hrms/payroll/doctype/employee_tax_exemption_declaration_category/employee_tax_exemption_declaration_category.py
Python
agpl-3.0
245
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.ui.form.on("Employee Tax Exemption Proof Submission", { setup: function (frm) { frm.set_query("employee", function () { return { filters: { status: "Active", }, }; });...
2302_79757062/hrms
hrms/payroll/doctype/employee_tax_exemption_proof_submission/employee_tax_exemption_proof_submission.js
JavaScript
agpl-3.0
2,163
# Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from frappe.model.document import Document from frappe.utils import flt from hrms.hr.utils import ( calculate_hra_exemption_for_period, get_total_exemption_amount, validate_active_employee, vali...
2302_79757062/hrms
hrms/payroll/doctype/employee_tax_exemption_proof_submission/employee_tax_exemption_proof_submission.py
Python
agpl-3.0
1,974
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document class EmployeeTaxExemptionProofSubmissionDetail(Document): pass
2302_79757062/hrms
hrms/payroll/doctype/employee_tax_exemption_proof_submission_detail/employee_tax_exemption_proof_submission_detail.py
Python
agpl-3.0
247
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.ui.form.on("Employee Tax Exemption Sub Category", { refresh: function (frm) {}, });
2302_79757062/hrms
hrms/payroll/doctype/employee_tax_exemption_sub_category/employee_tax_exemption_sub_category.js
JavaScript
agpl-3.0
214
# 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 flt class EmployeeTaxExemptionSubCategory(Document): def validate(self): category_max_amoun...
2302_79757062/hrms
hrms/payroll/doctype/employee_tax_exemption_sub_category/employee_tax_exemption_sub_category.py
Python
agpl-3.0
677
// Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.ui.form.on("Gratuity", { setup: function (frm) { frm.set_query("salary_component", function () { return { filters: { type: "Earning", }, }; }); frm.set_query("expen...
2302_79757062/hrms
hrms/payroll/doctype/gratuity/gratuity.js
JavaScript
agpl-3.0
1,707
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from math import floor import frappe from frappe import _, bold from frappe.query_builder.functions import Sum from frappe.utils import cstr, flt, get_datetime, get_link_to_form from erpnext.accoun...
2302_79757062/hrms
hrms/payroll/doctype/gratuity/gratuity.py
Python
agpl-3.0
10,449
from frappe import _ def get_data(): return { "fieldname": "reference_name", "non_standard_fieldnames": { "Additional Salary": "ref_docname", }, "transactions": [{"label": _("Payment"), "items": ["Payment Entry", "Additional Salary"]}], }
2302_79757062/hrms
hrms/payroll/doctype/gratuity/gratuity_dashboard.py
Python
agpl-3.0
254
frappe.listview_settings["Gratuity"] = { get_indicator: function (doc) { let status_color = { Draft: "red", Submitted: "blue", Cancelled: "red", Paid: "green", Unpaid: "orange", }; return [__(doc.status), status_color[doc.status], "status,=," + doc.status]; }, };
2302_79757062/hrms
hrms/payroll/doctype/gratuity/gratuity_list.js
JavaScript
agpl-3.0
287
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document class GratuityApplicableComponent(Document): pass
2302_79757062/hrms
hrms/payroll/doctype/gratuity_applicable_component/gratuity_applicable_component.py
Python
agpl-3.0
233
// Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.ui.form.on("Gratuity Rule", { // refresh: function(frm) { // } }); frappe.ui.form.on("Gratuity Rule Slab", { /* Slabs should be in order like from | to | fraction 0 | 4 | 0.5 ...
2302_79757062/hrms
hrms/payroll/doctype/gratuity_rule/gratuity_rule.js
JavaScript
agpl-3.0
951
# Copyright (c) 2020, 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 GratuityRule(Document): def validate(self): for current_slab in self.gratuity_rule_slabs: if (current_slab....
2302_79757062/hrms
hrms/payroll/doctype/gratuity_rule/gratuity_rule.py
Python
agpl-3.0
1,237
from frappe import _ def get_data(): return { "fieldname": "gratuity_rule", "transactions": [{"label": _("Gratuity"), "items": ["Gratuity"]}], }
2302_79757062/hrms
hrms/payroll/doctype/gratuity_rule/gratuity_rule_dashboard.py
Python
agpl-3.0
153
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document class GratuityRuleSlab(Document): pass
2302_79757062/hrms
hrms/payroll/doctype/gratuity_rule_slab/gratuity_rule_slab.py
Python
agpl-3.0
222
// Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.ui.form.on("Income Tax Slab", { refresh: function (frm) { if (frm.doc.docstatus != 1) return; frm.add_custom_button( __("Salary Structure Assignment"), () => { frappe.model.wit...
2302_79757062/hrms
hrms/payroll/doctype/income_tax_slab/income_tax_slab.js
JavaScript
agpl-3.0
714
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from frappe.model.document import Document # import frappe import erpnext class IncomeTaxSlab(Document): def validate(self): if self.company: self.currency = erpnext.get_company_currency(sel...
2302_79757062/hrms
hrms/payroll/doctype/income_tax_slab/income_tax_slab.py
Python
agpl-3.0
331
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document class IncomeTaxSlabOtherCharges(Document): pass
2302_79757062/hrms
hrms/payroll/doctype/income_tax_slab_other_charges/income_tax_slab_other_charges.py
Python
agpl-3.0
231
# Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from frappe.model.document import Document class PayrollEmployeeDetail(Document): pass
2302_79757062/hrms
hrms/payroll/doctype/payroll_employee_detail/payroll_employee_detail.py
Python
agpl-3.0
211
// Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt var in_progress = false; frappe.provide("erpnext.accounts.dimensions"); frappe.ui.form.on("Payroll Entry", { onload: function (frm) { frm.ignore_doctypes_on_cancel_all = ["Salary Slip", "Journa...
2302_79757062/hrms
hrms/payroll/doctype/payroll_entry/payroll_entry.js
JavaScript
agpl-3.0
11,747
# Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt import json from dateutil.relativedelta import relativedelta import frappe from frappe import _ from frappe.desk.reportview import get_match_cond from frappe.model.document import Document from frap...
2302_79757062/hrms
hrms/payroll/doctype/payroll_entry/payroll_entry.py
Python
agpl-3.0
47,672
def get_data(): return { "fieldname": "payroll_entry", "non_standard_fieldnames": { "Journal Entry": "reference_name", "Payment Entry": "reference_name", }, "transactions": [{"items": ["Salary Slip", "Journal Entry"]}], }
2302_79757062/hrms
hrms/payroll/doctype/payroll_entry/payroll_entry_dashboard.py
Python
agpl-3.0
238
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors // License: GNU General Public License v3. See license.txt // render frappe.listview_settings["Payroll Entry"] = { has_indicator_for_draft: 1, get_indicator: function (doc) { var status_color = { Draft: "red", Submitted: "blue", Queued:...
2302_79757062/hrms
hrms/payroll/doctype/payroll_entry/payroll_entry_list.js
JavaScript
agpl-3.0
461
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.ui.form.on("Payroll Period", { onload: function (frm) { frm.trigger("set_start_date"); }, set_start_date: function (frm) { if (!frm.doc.__islocal) return; frappe.db .get_list("P...
2302_79757062/hrms
hrms/payroll/doctype/payroll_period/payroll_period.js
JavaScript
agpl-3.0
1,002
# 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_months, cint, date_diff, flt, formatdate, getdate from frappe.utils.caching import redis_cac...
2302_79757062/hrms
hrms/payroll/doctype/payroll_period/payroll_period.py
Python
agpl-3.0
4,471
def get_data(): return { "fieldname": "payroll_period", "transactions": [ {"items": ["Employee Tax Exemption Proof Submission", "Employee Tax Exemption Declaration"]}, ], }
2302_79757062/hrms
hrms/payroll/doctype/payroll_period/payroll_period_dashboard.py
Python
agpl-3.0
184
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document class PayrollPeriodDate(Document): pass
2302_79757062/hrms
hrms/payroll/doctype/payroll_period_date/payroll_period_date.py
Python
agpl-3.0
223
// Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.ui.form.on("Payroll Settings", { refresh: function (frm) { frm.set_query("sender", () => { return { filters: { enable_outgoing: 1, }, }; }); }, encrypt_salary_slips...
2302_79757062/hrms
hrms/payroll/doctype/payroll_settings/payroll_settings.js
JavaScript
agpl-3.0
943
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt import frappe from frappe import _ from frappe.custom.doctype.property_setter.property_setter import make_property_setter from frappe.model.document import Document from frappe.utils import cint cl...
2302_79757062/hrms
hrms/payroll/doctype/payroll_settings/payroll_settings.py
Python
agpl-3.0
1,220
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.ui.form.on("Retention Bonus", { setup: function (frm) { frm.set_query("employee", function () { if (!frm.doc.company) { frappe.msgprint(__("Please Select Company First")); } r...
2302_79757062/hrms
hrms/payroll/doctype/retention_bonus/retention_bonus.js
JavaScript
agpl-3.0
933
# 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_active_employee class RetentionBonus(Document): d...
2302_79757062/hrms
hrms/payroll/doctype/retention_bonus/retention_bonus.py
Python
agpl-3.0
2,302
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.ui.form.on("Salary Component", { setup: function (frm) { frm.set_query("account", "accounts", function (doc, cdt, cdn) { var d = locals[cdt][cdn]; return { filters: { is_gro...
2302_79757062/hrms
hrms/payroll/doctype/salary_component/salary_component.js
JavaScript
agpl-3.0
4,226
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt import copy import frappe from frappe import _ from frappe.model.document import Document from frappe.model.naming import append_number_if_name_exists from hrms.payroll.utils import sanitize_express...
2302_79757062/hrms
hrms/payroll/doctype/salary_component/salary_component.py
Python
agpl-3.0
3,271
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from frappe.model.document import Document class SalaryComponentAccount(Document): pass
2302_79757062/hrms
hrms/payroll/doctype/salary_component_account/salary_component_account.py
Python
agpl-3.0
212
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from frappe.model.document import Document class SalaryDetail(Document): pass
2302_79757062/hrms
hrms/payroll/doctype/salary_detail/salary_detail.py
Python
agpl-3.0
202
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors // License: GNU General Public License v3. See license.txt frappe.ui.form.on("Salary Slip", { setup: function (frm) { $.each(["earnings", "deductions"], function (i, table_fieldname) { frm.get_field(table_fieldname).grid.editable_fields = [ ...
2302_79757062/hrms
hrms/payroll/doctype/salary_slip/salary_slip.js
JavaScript
agpl-3.0
10,320
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt import unicodedata from datetime import date import frappe from frappe import _, msgprint from frappe.model.naming import make_autoname from frappe.query_builder import Order from frappe.que...
2302_79757062/hrms
hrms/payroll/doctype/salary_slip/salary_slip.py
Python
agpl-3.0
76,450
frappe.listview_settings["Salary Slip"] = { onload: function (listview) { if ( !has_common(frappe.user_roles, [ "Administrator", "System Manager", "HR Manager", "HR User", ]) ) return; listview.page.add_menu_item(__("Email Salary Slips"), () => { if (!listview.get_checked_items().len...
2302_79757062/hrms
hrms/payroll/doctype/salary_slip/salary_slip_list.js
JavaScript
agpl-3.0
649
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from typing import TYPE_CHECKING import frappe from frappe import _ if TYPE_CHECKING: from hrms.payroll.doctype.salary_slip.salary_slip import SalarySlip def if_lending_app_installed(func...
2302_79757062/hrms
hrms/payroll/doctype/salary_slip/salary_slip_loan_utils.py
Python
agpl-3.0
4,772
# 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 SalarySlipLeave(Document): pass
2302_79757062/hrms
hrms/payroll/doctype/salary_slip_leave/salary_slip_leave.py
Python
agpl-3.0
221
# 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 SalarySlipLoan(Document): pass
2302_79757062/hrms
hrms/payroll/doctype/salary_slip_loan/salary_slip_loan.py
Python
agpl-3.0
220
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document class SalarySlipTimesheet(Document): pass
2302_79757062/hrms
hrms/payroll/doctype/salary_slip_timesheet/salary_slip_timesheet.py
Python
agpl-3.0
225
<h3>Variables</h3> <ul> <li> Variables from Salary Structure Assignment:<br> <code>base = Base</code>, <code>variable = Variable</code> etc. </li> <li> Variables from Employee:<br> <code>Employment Type = employment_type</code>, <code>Branch = branch</code> etc. </li> <li> ...
2302_79757062/hrms
hrms/payroll/doctype/salary_structure/condition_and_formula_help.html
HTML
agpl-3.0
1,671
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors // License: GNU General Public License v3. See license.txt frappe.ui.form.on("Salary Structure", { onload: function (frm) { frm.alerted_rows = []; let help_button = $(`<a class = 'control-label'> ${__("Condition and Formula Help")} </a>`)...
2302_79757062/hrms
hrms/payroll/doctype/salary_structure/salary_structure.js
JavaScript
agpl-3.0
10,800
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt import re import frappe from frappe import _ from frappe.model.document import Document from frappe.model.mapper import get_mapped_doc from frappe.utils import cint, cstr, flt import erpnext...
2302_79757062/hrms
hrms/payroll/doctype/salary_structure/salary_structure.py
Python
agpl-3.0
13,352
def get_data(): return { "fieldname": "salary_structure", "non_standard_fieldnames": {"Employee Grade": "default_salary_structure"}, "transactions": [ {"items": ["Salary Structure Assignment", "Salary Slip"]}, {"items": ["Employee Grade"]}, ], }
2302_79757062/hrms
hrms/payroll/doctype/salary_structure/salary_structure_dashboard.py
Python
agpl-3.0
262
frappe.listview_settings["Salary Structure"] = { onload: function (list_view) { list_view.page.add_inner_button(__("Bulk Salary Structure Assignment"), function () { frappe.set_route("Form", "Bulk Salary Structure Assignment"); }); }, };
2302_79757062/hrms
hrms/payroll/doctype/salary_structure/salary_structure_list.js
JavaScript
agpl-3.0
247
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.ui.form.on("Salary Structure Assignment", { setup: function (frm) { frm.set_query("employee", function () { return { query: "erpnext.controllers.queries.employee_query", filters...
2302_79757062/hrms
hrms/payroll/doctype/salary_structure_assignment/salary_structure_assignment.js
JavaScript
agpl-3.0
4,344
# 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, get_link_to_form, getdate class DuplicateAssignment(frappe.ValidationError): pass ...
2302_79757062/hrms
hrms/payroll/doctype/salary_structure_assignment/salary_structure_assignment.py
Python
agpl-3.0
7,510
// Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.ui.form.on("Salary Withholding", { employee(frm) { if (!frm.doc.employee) return; frappe .call({ method: "hrms.payroll.doctype.salary_withholding.salary_withholding.get_payroll_f...
2302_79757062/hrms
hrms/payroll/doctype/salary_withholding/salary_withholding.js
JavaScript
agpl-3.0
870
# Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from datetime import date from dateutil.relativedelta import relativedelta import frappe from frappe import _ from frappe.model.document import Document from frappe.utils import add_days, add_to_dat...
2302_79757062/hrms
hrms/payroll/doctype/salary_withholding/salary_withholding.py
Python
agpl-3.0
5,985
# Copyright (c) 2024, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document class SalaryWithholdingCycle(Document): pass
2302_79757062/hrms
hrms/payroll/doctype/salary_withholding_cycle/salary_withholding_cycle.py
Python
agpl-3.0
227
# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document class TaxableSalarySlab(Document): pass
2302_79757062/hrms
hrms/payroll/doctype/taxable_salary_slab/taxable_salary_slab.py
Python
agpl-3.0
223
def get_context(context): # do your magic here pass
2302_79757062/hrms
hrms/payroll/notification/retention_bonus/retention_bonus.py
Python
agpl-3.0
54
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt /* eslint-disable */ frappe.query_reports["Bank Remittance"] = { filters: [ { fieldname: "company", label: __("Company"), fieldtype: "Link", options: "Company", default: frappe.def...
2302_79757062/hrms
hrms/payroll/report/bank_remittance/bank_remittance.js
JavaScript
agpl-3.0
545
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt import frappe from frappe import _, get_all def execute(filters=None): columns = [ { "label": _("Payroll Number"), "fieldtype": "Link", "fieldname": "payroll_no", "options": "Payroll...
2302_79757062/hrms
hrms/payroll/report/bank_remittance/bank_remittance.py
Python
agpl-3.0
4,545
// Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt /* eslint-disable */ frappe.query_reports["Income Tax Computation"] = { filters: [ { fieldname: "company", label: __("Company"), fieldtype: "Link", options: "Company", default: fra...
2302_79757062/hrms
hrms/payroll/report/income_tax_computation/income_tax_computation.js
JavaScript
agpl-3.0
974
# Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt import frappe from frappe import _, scrub from frappe.query_builder.functions import Sum from frappe.utils import add_days, flt, getdate, rounded from hrms.payroll.doctype.payroll_entry.payroll_entry...
2302_79757062/hrms
hrms/payroll/report/income_tax_computation/income_tax_computation.py
Python
agpl-3.0
16,964
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt /* eslint-disable */ frappe.query_reports["Income Tax Deductions"] = $.extend( {}, hrms.salary_slip_deductions_report_filters, );
2302_79757062/hrms
hrms/payroll/report/income_tax_deductions/income_tax_deductions.js
JavaScript
agpl-3.0
254
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt import frappe from frappe import _ from frappe.query_builder.functions import Extract import erpnext Filters = frappe._dict def execute(filters: Filters = None) -> tuple: is_indian_company = erp...
2302_79757062/hrms
hrms/payroll/report/income_tax_deductions/income_tax_deductions.py
Python
agpl-3.0
3,305
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt /* eslint-disable */ frappe.query_reports["Professional Tax Deductions"] = $.extend( {}, hrms.salary_slip_deductions_report_filters, );
2302_79757062/hrms
hrms/payroll/report/professional_tax_deductions/professional_tax_deductions.js
JavaScript
agpl-3.0
260
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt import frappe from frappe import _ from hrms.payroll.report.provident_fund_deductions.provident_fund_deductions import get_conditions def execute(filters=None): data = get_data(filters) columns ...
2302_79757062/hrms
hrms/payroll/report/professional_tax_deductions/professional_tax_deductions.py
Python
agpl-3.0
1,708
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt /* eslint-disable */ frappe.query_reports["Provident Fund Deductions"] = $.extend( {}, hrms.salary_slip_deductions_report_filters, );
2302_79757062/hrms
hrms/payroll/report/provident_fund_deductions/provident_fund_deductions.js
JavaScript
agpl-3.0
258
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt import frappe from frappe import _ from frappe.utils import getdate def execute(filters=None): data = get_data(filters) columns = get_columns(filters) if len(data) else [] return columns, data ...
2302_79757062/hrms
hrms/payroll/report/provident_fund_deductions/provident_fund_deductions.py
Python
agpl-3.0
4,622
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt /* eslint-disable */ frappe.query_reports["Salary Payments Based On Payment Mode"] = $.extend( {}, hrms.salary_slip_deductions_report_filters, { formatter: function (value, row, column, data, d...
2302_79757062/hrms
hrms/payroll/report/salary_payments_based_on_payment_mode/salary_payments_based_on_payment_mode.js
JavaScript
agpl-3.0
536
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt import frappe from frappe import _ import erpnext from hrms.payroll.report.provident_fund_deductions.provident_fund_deductions import get_conditions def execute(filters=None): mode_of_payments =...
2302_79757062/hrms
hrms/payroll/report/salary_payments_based_on_payment_mode/salary_payments_based_on_payment_mode.py
Python
agpl-3.0
4,273
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt /* eslint-disable */ frappe.query_reports["Salary Payments via ECS"] = $.extend( {}, hrms.salary_slip_deductions_report_filters, ); frappe.query_reports["Salary Payments via ECS"]["filters"].push...
2302_79757062/hrms
hrms/payroll/report/salary_payments_via_ecs/salary_payments_via_ecs.js
JavaScript
agpl-3.0
431
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt import frappe from frappe import _ import erpnext def execute(filters=None): columns = get_columns(filters) data = get_data(filters) return columns, data def get_columns(filters): columns =...
2302_79757062/hrms
hrms/payroll/report/salary_payments_via_ecs/salary_payments_via_ecs.py
Python
agpl-3.0
3,661
{% var report_columns = report.get_columns_for_print(); %} <div style="margin-bottom: 7px;" class="text-center"> {%= frappe.boot.letter_heads[filters.letter_head || frappe.defaults.get_default("letter_head")].header %} </div> <h2 class="text-center">{%= __(report.report_name) %}</h2> <h5 class="text-center">{{ __("Fr...
2302_79757062/hrms
hrms/payroll/report/salary_register/salary_register.html
HTML
agpl-3.0
1,305
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.query_reports["Salary Register"] = { filters: [ { fieldname: "from_date", label: __("From"), fieldtype: "Date", default: frappe.datetime.add_months(frappe.datetime.get_today(),...
2302_79757062/hrms
hrms/payroll/report/salary_register/salary_register.js
JavaScript
agpl-3.0
1,220
# 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.utils import flt import erpnext salary_slip = frappe.qb.DocType("Salary Slip") salary_detail = frappe.qb.DocType("Salary Detail") salary_compo...
2302_79757062/hrms
hrms/payroll/report/salary_register/salary_register.py
Python
agpl-3.0
8,064
import frappe def sanitize_expression(string: str | None = None) -> str | None: """ Removes leading and trailing whitespace and merges multiline strings into a single line. Args: string (str, None): The string expression to be sanitized. Defaults to None. Returns: str or None: The sanitized string exp...
2302_79757062/hrms
hrms/payroll/utils.py
Python
agpl-3.0
916
// Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.ui.form.on("Bank Transaction", { get_payment_doctypes: function () { return [ "Payment Entry", "Journal Entry", "Sales Invoice", "Purchase Invoice", "Expense Claim", ]; }...
2302_79757062/hrms
hrms/public/js/erpnext/bank_transaction.js
JavaScript
agpl-3.0
326
// Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.ui.form.on("Company", { refresh: function (frm) { frm.set_query("default_expense_claim_payable_account", function () { return { filters: { company: frm.doc.name, is_group:...
2302_79757062/hrms
hrms/public/js/erpnext/company.js
JavaScript
agpl-3.0
828
// Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.ui.form.on("Delivery Trip", { refresh: function (frm) { if (frm.doc.docstatus === 1 && frm.doc.employee) { frm.add_custom_button( __("Expense Claim"), function () { frappe....
2302_79757062/hrms
hrms/public/js/erpnext/delivery_trip.js
JavaScript
agpl-3.0
510
// Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.ui.form.on("Department", { refresh: function (frm) { frm.set_query("payroll_cost_center", function () { return { filters: { company: frm.doc.company, is_group: 0, }, ...
2302_79757062/hrms
hrms/public/js/erpnext/department.js
JavaScript
agpl-3.0
339
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.ui.form.on("Employee", { refresh: function (frm) { frm.set_query("payroll_cost_center", function () { return { filters: { company: frm.doc.company, is_group: 0, }, ...
2302_79757062/hrms
hrms/public/js/erpnext/employee.js
JavaScript
agpl-3.0
597
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.ui.form.on("Journal Entry", { setup(frm) { frm.ignore_doctypes_on_cancel_all.push("Salary Withholding"); if (frm.doc.voucher_type === "Bank Entry") { // since salary withholding is li...
2302_79757062/hrms
hrms/public/js/erpnext/journal_entry.js
JavaScript
agpl-3.0
2,772
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.ui.form.on("Payment Entry", { refresh: function (frm) { frm.set_query("reference_doctype", "references", function () { let doctypes = []; if (frm.doc.party_type == "Customer") { ...
2302_79757062/hrms
hrms/public/js/erpnext/payment_entry.js
JavaScript
agpl-3.0
2,742
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors // For license information, please see license.txt frappe.ui.form.on("Timesheet", { refresh(frm) { if (frm.doc.docstatus === 1 && frappe.model.can_create("Salary Slip")) { if (!frm.doc.salary_slip && frm.doc.employee) { frm.add_custom_butt...
2302_79757062/hrms
hrms/public/js/erpnext/timesheet.js
JavaScript
agpl-3.0
610
import "./hierarchy_chart/hierarchy_chart_desktop.js"; import "./hierarchy_chart/hierarchy_chart_mobile.js"; import "./templates/node_card.html";
2302_79757062/hrms
hrms/public/js/hierarchy-chart.bundle.js
JavaScript
agpl-3.0
146
import html2canvas from "html2canvas"; hrms.HierarchyChart = class { /* Options: - doctype - wrapper: wrapper for the hierarchy view - method: - to get the data for each node - this method should return id, name, title, image, and connections for each node */ constructor(doctype, wrapper, method) { thi...
2302_79757062/hrms
hrms/public/js/hierarchy_chart/hierarchy_chart_desktop.js
JavaScript
agpl-3.0
15,845
hrms.HierarchyChartMobile = class { /* Options: - doctype - wrapper: wrapper for the hierarchy view - method: - to get the data for each node - this method should return id, name, title, image, and connections for each node */ constructor(doctype, wrapper, method) { this.page = wrapper.page; this.met...
2302_79757062/hrms
hrms/public/js/hierarchy_chart/hierarchy_chart_mobile.js
JavaScript
agpl-3.0
14,587
import "./templates/employees_with_unmarked_attendance.html"; import "./templates/feedback_summary.html"; import "./templates/feedback_history.html"; import "./templates/rating.html"; import "./utils"; import "./utils/payroll_utils"; import "./utils/leave_utils"; import "./salary_slip_deductions_report_filters.js";
2302_79757062/hrms
hrms/public/js/hrms.bundle.js
JavaScript
agpl-3.0
317
import "./templates/interview_feedback.html"; import "./templates/circular_progress_bar.html";
2302_79757062/hrms
hrms/public/js/interview.bundle.js
JavaScript
agpl-3.0
95
frappe.provide("hrms"); hrms.PerformanceFeedback = class PerformanceFeedback { constructor({ frm, wrapper }) { this.frm = frm; this.wrapper = wrapper; } refresh() { this.prepare_dom(); this.setup_feedback_view(); } prepare_dom() { this.wrapper.find(".feedback-section").remove(); } setup_feedback_vi...
2302_79757062/hrms
hrms/public/js/performance/performance_feedback.js
JavaScript
agpl-3.0
3,963
import "./performance/performance_feedback.js"; import "./templates/performance_feedback.html";
2302_79757062/hrms
hrms/public/js/performance.bundle.js
JavaScript
agpl-3.0
96
frappe.provide("hrms.salary_slip_deductions_report_filters"); hrms.salary_slip_deductions_report_filters = { filters: [ { fieldname: "company", label: __("Company"), fieldtype: "Link", options: "Company", reqd: 1, default: frappe.defaults.get_user_default("Company"), }, { fieldname: "month"...
2302_79757062/hrms
hrms/public/js/salary_slip_deductions_report_filters.js
JavaScript
agpl-3.0
1,658
<div class="circular-progress mx-auto mb-3"> {% degree = Math.floor(rating*360/5) %} {% deg_right = degree > 180 ? 180 : degree %} {% deg_left = degree > 180 ? degree - 180 : 0 %} <span class="progress-left" style="--deg-left: {{ deg_left }}deg"> <span class="progress-bar" style="border-color: var(--gray-600)"></...
2302_79757062/hrms
hrms/public/js/templates/circular_progress_bar.html
HTML
agpl-3.0
594
{% if data.length %} <div class="form-message yellow"> <div> {{ __( "Attendance is pending for these employees between the selected payroll dates. Mark attendance to proceed. Refer {0} for details.", ["<a href='/app/query-report/Monthly%20Attendance%20Sheet'>Monthly Attendance Sheet</a>"] ) }} </di...
2302_79757062/hrms
hrms/public/js/templates/employees_with_unmarked_attendance.html
HTML
agpl-3.0
1,051
<div class="feedback-history mb-3"> {% if (feedback_history.length) { %} {% for (let i=0, l=feedback_history.length; i<l; i++) { %} <div class="feedback-content p-3 d-flex flex-row mt-3" data-name="{{ feedback_history[i].name }}"> <!-- Reviewer Info --> <div class="reviewer-info mb-2 col-xs-3"> <div ...
2302_79757062/hrms
hrms/public/js/templates/feedback_history.html
HTML
agpl-3.0
1,982
<div class="feedback-summary-section my-4 d-flex"> <!-- Ratings Summary --> <div class="rating-summary-numbers col-3"> <div class="feedback-count mt-1 mb-2 text-secondary"> {{ __("Average Rating") }} </div> <h2 class="average-rating mb-2">{{ average_rating }}</h2> {%= frappe.render_template("rating", ...
2302_79757062/hrms
hrms/public/js/templates/feedback_summary.html
HTML
agpl-3.0
1,469
<div class="feedback-section col-xs-12"> {% if feedbacks.length %} <h4 class="my-4 mx-5" style="font-size: 18px"> {{ __("Overall Average Rating") }} </h4> {%= frappe.render_template( "feedback_summary", { number_of_stars: 5, average_rating: average_rating, feedback_count: feedbacks.length, reviews_per_rat...
2302_79757062/hrms
hrms/public/js/templates/interview_feedback.html
HTML
agpl-3.0
923
<div class="node-card card cursor-pointer" id="{%= id %}" data-parent="{%= parent %}"> <div class="node-meta d-flex flex-row"> <div class="mr-3"> <span class="avatar node-image" title="{{ name }}"> <span class="avatar-frame" src={{image}} style="background-image: url('{{ image }}')"></span> </span> </div...
2302_79757062/hrms
hrms/public/js/templates/node_card.html
HTML
agpl-3.0
1,337
<div class="feedback-section col-xs-12"> {% if (feedback_history.length) { %} <div class="feedback-summary mb-5 pb-2"> {%= frappe.render_template( "feedback_summary", { number_of_stars: 5, average_rating: average_feedback_score, feedback_count: feedback_history.length, review...
2302_79757062/hrms
hrms/public/js/templates/performance_feedback.html
HTML
agpl-3.0
884
<div class="d-flex flex-col"> <div class="rating {{ for_summary ? 'ratings-pill' : ''}}"> {% for (let i = 1; i <= number_of_stars; i++) { %} {% if (i <= average_rating) { %} {% right_class = 'star-click'; %} {% } else { %} {% right_class = ''; %} {% } %} {% if ((i <= average_rating) || ((i - 0.5...
2302_79757062/hrms
hrms/public/js/templates/rating.html
HTML
agpl-3.0
1,661
frappe.provide("hrms"); $.extend(hrms, { proceed_save_with_reminders_frequency_change: () => { frappe.ui.hide_open_dialog(); frappe.call({ method: "hrms.hr.doctype.hr_settings.hr_settings.set_proceed_with_frequency_change", callback: () => { // nosemgrep: frappe-semgrep-rules.rules.frappe-cur-frm-usage ...
2302_79757062/hrms
hrms/public/js/utils/index.js
JavaScript
agpl-3.0
5,268
hrms.leave_utils = { add_view_ledger_button(frm) { if (frm.doc.__islocal || frm.doc.docstatus != 1) return; frm.add_custom_button(__("View Ledger"), () => { frappe.route_options = { from_date: frm.doc.from_date, to_date: frm.doc.to_date, transaction_type: frm.doc.doctype, transaction_name: frm....
2302_79757062/hrms
hrms/public/js/utils/leave_utils.js
JavaScript
agpl-3.0
402
hrms.payroll_utils = { set_autocompletions_for_condition_and_formula: function (frm, child_row = "") { const autocompletions = []; frappe.run_serially([ ...["Employee", "Salary Structure", "Salary Structure Assignment", "Salary Slip"].map( (doctype) => frappe.model.with_doctype(doctype, () => { a...
2302_79757062/hrms
hrms/public/js/utils/payroll_utils.js
JavaScript
agpl-3.0
1,464
.circular-progress { width: 80px; height: 80px; line-height: 80px; position: relative; } .circular-progress:after { content: ""; width: 100%; height: 100%; border-radius: 50%; border: 7px solid var(--gray-200); position: absolute; top: 0; left: 0; } .circular-progress > span { width: 50%; height: 100%; ...
2302_79757062/hrms
hrms/public/scss/circular_progress.scss
SCSS
agpl-3.0
1,770