{
 "actions": [],
 "allow_copy": 1,
 "autoname": "HR-PRUN-.YYYY.-.#####",
 "creation": "2017-10-23 15:22:29.291323",
 "doctype": "DocType",
 "document_type": "Other",
 "engine": "InnoDB",
 "field_order": [
  "select_payroll_period",
  "posting_date",
  "company",
  "column_break_5",
  "currency",
  "exchange_rate",
  "payroll_payable_account",
  "status",
  "section_break_cypo",
  "salary_slip_based_on_timesheet",
  "payroll_frequency",
  "start_date",
  "end_date",
  "column_break_13",
  "deduct_tax_for_unclaimed_employee_benefits",
  "deduct_tax_for_unsubmitted_tax_exemption_proof",
  "employees_tab",
  "section_break_17",
  "branch",
  "department",
  "column_break_21",
  "designation",
  "grade",
  "number_of_employees",
  "section_break_24",
  "employees",
  "section_break_26",
  "validate_attendance",
  "attendance_detail_html",
  "accounting_dimensions_tab",
  "accounting_dimensions_section",
  "cost_center",
  "dimension_col_break",
  "project",
  "account",
  "payment_account",
  "column_break_35",
  "bank_account",
  "salary_slips_created",
  "salary_slips_submitted",
  "overtime_step",
  "failure_details_section",
  "error_message",
  "section_break_41",
  "amended_from",
  "connections_tab"
 ],
 "fields": [
  {
   "default": "Today",
   "fieldname": "posting_date",
   "fieldtype": "Date",
   "label": "Posting Date",
   "reqd": 1
  },
  {
   "fieldname": "payroll_frequency",
   "fieldtype": "Select",
   "label": "Payroll Frequency",
   "mandatory_depends_on": "eval:doc.salary_slip_based_on_timesheet == 0",
   "options": "\nMonthly\nFortnightly\nBimonthly\nWeekly\nDaily"
  },
  {
   "fieldname": "company",
   "fieldtype": "Link",
   "in_list_view": 1,
   "label": "Company",
   "options": "Company",
   "remember_last_selected_value": 1,
   "reqd": 1
  },
  {
   "fieldname": "branch",
   "fieldtype": "Link",
   "in_list_view": 1,
   "label": "Branch",
   "options": "Branch"
  },
  {
   "fieldname": "department",
   "fieldtype": "Link",
   "label": "Department",
   "options": "Department"
  },
  {
   "fieldname": "designation",
   "fieldtype": "Link",
   "label": "Designation",
   "options": "Designation"
  },
  {
   "fieldname": "number_of_employees",
   "fieldtype": "Int",
   "label": "Number Of Employees",
   "read_only": 1
  },
  {
   "fieldname": "employees",
   "fieldtype": "Table",
   "options": "Payroll Employee Detail"
  },
  {
   "default": "0",
   "fieldname": "validate_attendance",
   "fieldtype": "Check",
   "label": "Validate Attendance"
  },
  {
   "fieldname": "attendance_detail_html",
   "fieldtype": "HTML"
  },
  {
   "default": "0",
   "fieldname": "salary_slip_based_on_timesheet",
   "fieldtype": "Check",
   "label": "Salary Slip Based on Timesheet"
  },
  {
   "fieldname": "select_payroll_period",
   "fieldtype": "Tab Break",
   "label": "Overview"
  },
  {
   "fieldname": "start_date",
   "fieldtype": "Date",
   "label": "Start Date",
   "reqd": 1
  },
  {
   "fieldname": "end_date",
   "fieldtype": "Date",
   "label": "End Date",
   "reqd": 1
  },
  {
   "default": "0",
   "fieldname": "deduct_tax_for_unclaimed_employee_benefits",
   "fieldtype": "Check",
   "label": "Deduct Tax For Unclaimed Employee Benefits"
  },
  {
   "default": "0",
   "fieldname": "deduct_tax_for_unsubmitted_tax_exemption_proof",
   "fieldtype": "Check",
   "label": "Deduct Tax For Unsubmitted Tax Exemption Proof"
  },
  {
   "default": ":Company",
   "fieldname": "cost_center",
   "fieldtype": "Link",
   "label": "Cost Center",
   "options": "Cost Center",
   "reqd": 1
  },
  {
   "fieldname": "project",
   "fieldtype": "Link",
   "label": "Project",
   "options": "Project"
  },
  {
   "fieldname": "account",
   "fieldtype": "Section Break",
   "label": "Payment Entry"
  },
  {
   "allow_on_submit": 1,
   "description": "Select Payment Account to make Bank Entry",
   "fetch_from": "bank_account.account",
   "fieldname": "payment_account",
   "fieldtype": "Link",
   "label": "Payment Account",
   "options": "Account"
  },
  {
   "fieldname": "amended_from",
   "fieldtype": "Link",
   "label": "Amended From",
   "no_copy": 1,
   "options": "Payroll Entry",
   "print_hide": 1,
   "read_only": 1
  },
  {
   "default": "0",
   "fieldname": "salary_slips_created",
   "fieldtype": "Check",
   "hidden": 1,
   "label": "Salary Slips Created",
   "no_copy": 1,
   "read_only": 1
  },
  {
   "default": "0",
   "fieldname": "salary_slips_submitted",
   "fieldtype": "Check",
   "hidden": 1,
   "label": "Salary Slips Submitted",
   "no_copy": 1,
   "read_only": 1
  },
  {
   "fieldname": "accounting_dimensions_section",
   "fieldtype": "Section Break",
   "label": "Accounting Dimensions"
  },
  {
   "fieldname": "dimension_col_break",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "bank_account",
   "fieldtype": "Link",
   "label": "Bank Account",
   "options": "Bank Account"
  },
  {
   "depends_on": "company",
   "fieldname": "currency",
   "fieldtype": "Link",
   "in_list_view": 1,
   "label": "Currency",
   "options": "Currency",
   "reqd": 1
  },
  {
   "depends_on": "company",
   "fieldname": "exchange_rate",
   "fieldtype": "Float",
   "label": "Exchange Rate",
   "precision": "9",
   "reqd": 1
  },
  {
   "depends_on": "company",
   "fieldname": "payroll_payable_account",
   "fieldtype": "Link",
   "label": "Payroll Payable Account",
   "options": "Account",
   "reqd": 1
  },
  {
   "collapsible": 1,
   "collapsible_depends_on": "error_message",
   "depends_on": "eval:doc.status=='Failed';",
   "fieldname": "failure_details_section",
   "fieldtype": "Tab Break",
   "label": "Failure Details"
  },
  {
   "depends_on": "eval:doc.status=='Failed';",
   "fieldname": "error_message",
   "fieldtype": "Small Text",
   "label": "Error Message",
   "no_copy": 1,
   "read_only": 1
  },
  {
   "fieldname": "section_break_41",
   "fieldtype": "Section Break"
  },
  {
   "fieldname": "status",
   "fieldtype": "Select",
   "label": "Status",
   "options": "Draft\nSubmitted\nCancelled\nQueued\nFailed",
   "print_hide": 1,
   "read_only": 1
  },
  {
   "fieldname": "column_break_5",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "column_break_21",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "section_break_24",
   "fieldtype": "Section Break",
   "label": "Employee Details"
  },
  {
   "fieldname": "section_break_26",
   "fieldtype": "Section Break"
  },
  {
   "fieldname": "column_break_35",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "column_break_13",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "accounting_dimensions_tab",
   "fieldtype": "Tab Break",
   "label": "Accounting & Payment"
  },
  {
   "fieldname": "section_break_17",
   "fieldtype": "Section Break",
   "label": "Filter Employees"
  },
  {
   "fieldname": "employees_tab",
   "fieldtype": "Tab Break",
   "label": "Employees"
  },
  {
   "fieldname": "section_break_cypo",
   "fieldtype": "Section Break"
  },
  {
   "fieldname": "connections_tab",
   "fieldtype": "Tab Break",
   "label": "Connections",
   "show_dashboard": 1
  },
  {
   "fieldname": "grade",
   "fieldtype": "Link",
   "label": "Grade",
   "options": "Employee Grade"
  },
  {
   "fieldname": "overtime_step",
   "fieldtype": "Select",
   "label": "Overtime Slip Step",
   "options": "\nCreate\nSubmit"
  }
 ],
 "icon": "fa fa-cog",
 "is_submittable": 1,
 "links": [
  {
   "link_doctype": "Overtime Slip",
   "link_fieldname": "payroll_entry"
  }
 ],
 "modified": "2025-07-30 14:15:18.826081",
 "modified_by": "Administrator",
 "module": "Payroll",
 "name": "Payroll Entry",
 "naming_rule": "Expression (old style)",
 "owner": "Administrator",
 "permissions": [
  {
   "cancel": 1,
   "create": 1,
   "delete": 1,
   "read": 1,
   "report": 1,
   "role": "HR Manager",
   "share": 1,
   "submit": 1,
   "write": 1
  }
 ],
 "row_format": "Dynamic",
 "sort_field": "creation",
 "sort_order": "DESC",
 "states": []
}
