brotherton-erpnext/erpnext/docs/current/models/hr/leave_control_panel.html
2015-11-09 14:40:29 +05:30

325 lines
7.3 KiB
HTML

<!-- title: Leave Control Panel -->
<div class="dev-header">
<a class="btn btn-default btn-sm" disabled style="margin-bottom: 10px;">
Version 6.7.1</a>
<a class="btn btn-default btn-sm" href="https://github.com/frappe/erpnext/tree/develop/erpnext/hr/doctype/leave_control_panel"
target="_blank" style="margin-left: 10px; margin-bottom: 10px;"><i class="octicon octicon-mark-github"></i> Source</a>
</div>
<span class="label label-info">Single</span>
<h3>Fields</h3>
<table class="table table-bordered" style="table-layout: fixed;">
<thead>
<tr>
<th style="width: 5%">Sr</th>
<th style="width: 25%">Fieldname</th>
<th style="width: 20%">Type</th>
<th style="width: 25%">Label</th>
<th style="width: 25%">Options</th>
</tr>
</thead>
<tbody>
<tr >
<td>1</td>
<td ><code>column_break0</code></td>
<td class="info">
Column Break</td>
<td >
</td>
<td></td>
</tr>
<tr >
<td>2</td>
<td ><code>employee_type</code></td>
<td >
Link</td>
<td >
Employee Type
<p class="text-muted small">
Leave blank if considered for all employee types</p>
</td>
<td>
<a href="https://frappe.github.io/erpnext/current/models/hr/employment_type">Employment Type</a>
</td>
</tr>
<tr >
<td>3</td>
<td ><code>branch</code></td>
<td >
Link</td>
<td >
Branch
<p class="text-muted small">
Leave blank if considered for all branches</p>
</td>
<td>
<a href="https://frappe.github.io/erpnext/current/models/hr/branch">Branch</a>
</td>
</tr>
<tr >
<td>4</td>
<td ><code>department</code></td>
<td >
Link</td>
<td >
Department
<p class="text-muted small">
Leave blank if considered for all departments</p>
</td>
<td>
<a href="https://frappe.github.io/erpnext/current/models/hr/department">Department</a>
</td>
</tr>
<tr >
<td>5</td>
<td ><code>designation</code></td>
<td >
Link</td>
<td >
Designation
<p class="text-muted small">
Leave blank if considered for all designations</p>
</td>
<td>
<a href="https://frappe.github.io/erpnext/current/models/hr/designation">Designation</a>
</td>
</tr>
<tr >
<td>6</td>
<td ><code>column_break1</code></td>
<td class="info">
Column Break</td>
<td >
</td>
<td></td>
</tr>
<tr >
<td>7</td>
<td class="danger" title="Mandatory"><code>from_date</code></td>
<td >
Date</td>
<td >
From Date
</td>
<td></td>
</tr>
<tr >
<td>8</td>
<td class="danger" title="Mandatory"><code>to_date</code></td>
<td >
Date</td>
<td >
To Date
</td>
<td></td>
</tr>
<tr >
<td>9</td>
<td class="danger" title="Mandatory"><code>leave_type</code></td>
<td >
Link</td>
<td >
Leave Type
</td>
<td>
<a href="https://frappe.github.io/erpnext/current/models/hr/leave_type">Leave Type</a>
</td>
</tr>
<tr >
<td>10</td>
<td ><code>carry_forward</code></td>
<td >
Check</td>
<td >
Carry Forward
<p class="text-muted small">
Please select Carry Forward if you also want to include previous fiscal year's balance leaves to this fiscal year</p>
</td>
<td></td>
</tr>
<tr >
<td>11</td>
<td class="danger" title="Mandatory"><code>no_of_days</code></td>
<td >
Float</td>
<td >
New Leaves Allocated (In Days)
</td>
<td></td>
</tr>
<tr >
<td>12</td>
<td ><code>allocate</code></td>
<td >
Button</td>
<td >
Allocate
</td>
<td>
<pre>allocate_leave</pre>
</td>
</tr>
</tbody>
</table>
<hr>
<h3>Controller</h3>
<h4>erpnext.hr.doctype.leave_control_panel.leave_control_panel</h4>
<h3 style="font-weight: normal;">Class <b>LeaveControlPanel</b></h3>
<p style="padding-left: 30px;"><i>Inherits from frappe.model.document.Document</i></h4>
<div class="docs-attr-desc"><p></p>
</div>
<div style="padding-left: 30px;">
<p class="docs-attr-name">
<a name="allocate_leave" href="#allocate_leave" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>allocate_leave</b>
<i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="get_employees" href="#get_employees" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>get_employees</b>
<i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="to_date_validation" href="#to_date_validation" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>to_date_validation</b>
<i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
<p class="docs-attr-name">
<a name="validate_values" href="#validate_values" class="text-muted small">
<i class="icon-link small" style="color: #ccc;"></i></a>
<b>validate_values</b>
<i class="text-muted">(self)</i>
</p>
<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
</div>
<br>
</div>
<hr>
<!-- autodoc -->
<!-- jinja -->
<!-- static -->