291 lines
		
	
	
		
			7.9 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			291 lines
		
	
	
		
			7.9 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!-- title: Upload Attendance -->
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| <div class="dev-header">
 | |
| 
 | |
| <a class="btn btn-default btn-sm" disabled style="margin-bottom: 10px;">
 | |
| 	Version 6.x.x</a>
 | |
| 
 | |
| 
 | |
| 	<a class="btn btn-default btn-sm" href="https://github.com/frappe/erpnext/tree/develop/erpnext/hr/doctype/upload_attendance"
 | |
| 		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 class="info">
 | |
|             <td>1</td>
 | |
|             <td ><code>download_template</code></td>
 | |
|             <td >
 | |
|                 Section Break</td>
 | |
|             <td >
 | |
|                 Download Template
 | |
|                 <p class="text-muted small">
 | |
|                     Download the Template, fill appropriate data and attach the modified file.
 | |
| All dates and employee combination in the selected period will come in the template, with existing attendance records</p>
 | |
|             </td>
 | |
|             <td></td>
 | |
|         </tr>
 | |
|         
 | |
|         <tr >
 | |
|             <td>2</td>
 | |
|             <td class="danger" title="Mandatory"><code>att_fr_date</code></td>
 | |
|             <td >
 | |
|                 Date</td>
 | |
|             <td >
 | |
|                 Attendance From Date
 | |
|                 
 | |
|             </td>
 | |
|             <td></td>
 | |
|         </tr>
 | |
|         
 | |
|         <tr >
 | |
|             <td>3</td>
 | |
|             <td class="danger" title="Mandatory"><code>att_to_date</code></td>
 | |
|             <td >
 | |
|                 Date</td>
 | |
|             <td >
 | |
|                 Attendance To Date
 | |
|                 
 | |
|             </td>
 | |
|             <td></td>
 | |
|         </tr>
 | |
|         
 | |
|         <tr >
 | |
|             <td>4</td>
 | |
|             <td ><code>get_template</code></td>
 | |
|             <td >
 | |
|                 Button</td>
 | |
|             <td >
 | |
|                 Get Template
 | |
|                 
 | |
|             </td>
 | |
|             <td></td>
 | |
|         </tr>
 | |
|         
 | |
|         <tr class="info">
 | |
|             <td>5</td>
 | |
|             <td ><code>upload_attendance_data</code></td>
 | |
|             <td >
 | |
|                 Section Break</td>
 | |
|             <td >
 | |
|                 Import Attendance
 | |
|                 
 | |
|             </td>
 | |
|             <td></td>
 | |
|         </tr>
 | |
|         
 | |
|         <tr >
 | |
|             <td>6</td>
 | |
|             <td ><code>upload_html</code></td>
 | |
|             <td >
 | |
|                 HTML</td>
 | |
|             <td >
 | |
|                 Upload HTML
 | |
|                 
 | |
|             </td>
 | |
|             <td></td>
 | |
|         </tr>
 | |
|         
 | |
|         <tr >
 | |
|             <td>7</td>
 | |
|             <td ><code>import_log</code></td>
 | |
|             <td >
 | |
|                 HTML</td>
 | |
|             <td >
 | |
|                 Import Log
 | |
|                 
 | |
|             </td>
 | |
|             <td></td>
 | |
|         </tr>
 | |
|         
 | |
|     </tbody>
 | |
| </table>
 | |
| 
 | |
| 
 | |
|     <hr>
 | |
|     <h3>Controller</h3>
 | |
|     <h4>erpnext.hr.doctype.upload_attendance.upload_attendance</h4>
 | |
| 
 | |
|     
 | |
| 
 | |
| 
 | |
| 
 | |
| 	
 | |
|         
 | |
| 	<h3 style="font-weight: normal;">Class <b>UploadAttendance</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;">
 | |
|         
 | |
|     </div>
 | |
|     <hr>
 | |
| 
 | |
| 	
 | |
| 
 | |
| 	
 | |
|         
 | |
|     
 | |
|     
 | |
| 	<p class="docs-attr-name">
 | |
|         <a name="erpnext.hr.doctype.upload_attendance.upload_attendance.add_data" href="#erpnext.hr.doctype.upload_attendance.upload_attendance.add_data" class="text-muted small">
 | |
|             <i class="icon-link small" style="color: #ccc;"></i></a>
 | |
| 		erpnext.hr.doctype.upload_attendance.upload_attendance.<b>add_data</b>
 | |
|         <i class="text-muted">(w, args)</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="erpnext.hr.doctype.upload_attendance.upload_attendance.add_header" href="#erpnext.hr.doctype.upload_attendance.upload_attendance.add_header" class="text-muted small">
 | |
|             <i class="icon-link small" style="color: #ccc;"></i></a>
 | |
| 		erpnext.hr.doctype.upload_attendance.upload_attendance.<b>add_header</b>
 | |
|         <i class="text-muted">(w)</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="erpnext.hr.doctype.upload_attendance.upload_attendance.get_active_employees" href="#erpnext.hr.doctype.upload_attendance.upload_attendance.get_active_employees" class="text-muted small">
 | |
|             <i class="icon-link small" style="color: #ccc;"></i></a>
 | |
| 		erpnext.hr.doctype.upload_attendance.upload_attendance.<b>get_active_employees</b>
 | |
|         <i class="text-muted">()</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="erpnext.hr.doctype.upload_attendance.upload_attendance.get_dates" href="#erpnext.hr.doctype.upload_attendance.upload_attendance.get_dates" class="text-muted small">
 | |
|             <i class="icon-link small" style="color: #ccc;"></i></a>
 | |
| 		erpnext.hr.doctype.upload_attendance.upload_attendance.<b>get_dates</b>
 | |
|         <i class="text-muted">(args)</i>
 | |
|     </p>
 | |
| 	<div class="docs-attr-desc"><p>get list of dates in between from date and to date</p>
 | |
| </div>
 | |
| 	<br>
 | |
| 
 | |
| 	
 | |
| 
 | |
| 	
 | |
|         
 | |
|     
 | |
|     
 | |
| 	<p class="docs-attr-name">
 | |
|         <a name="erpnext.hr.doctype.upload_attendance.upload_attendance.get_existing_attendance_records" href="#erpnext.hr.doctype.upload_attendance.upload_attendance.get_existing_attendance_records" class="text-muted small">
 | |
|             <i class="icon-link small" style="color: #ccc;"></i></a>
 | |
| 		erpnext.hr.doctype.upload_attendance.upload_attendance.<b>get_existing_attendance_records</b>
 | |
|         <i class="text-muted">(args)</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="erpnext.hr.doctype.upload_attendance.upload_attendance.get_naming_series" href="#erpnext.hr.doctype.upload_attendance.upload_attendance.get_naming_series" class="text-muted small">
 | |
|             <i class="icon-link small" style="color: #ccc;"></i></a>
 | |
| 		erpnext.hr.doctype.upload_attendance.upload_attendance.<b>get_naming_series</b>
 | |
|         <i class="text-muted">()</i>
 | |
|     </p>
 | |
| 	<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
 | |
| </div>
 | |
| 	<br>
 | |
| 
 | |
| 	
 | |
| 
 | |
| 	
 | |
|         
 | |
|     
 | |
|     <p><span class="label label-info">Public API</span>
 | |
|         <br><code>/api/method/erpnext.hr.doctype.upload_attendance.upload_attendance.get_template</code>
 | |
|     </p>
 | |
| 	<p class="docs-attr-name">
 | |
|         <a name="erpnext.hr.doctype.upload_attendance.upload_attendance.get_template" href="#erpnext.hr.doctype.upload_attendance.upload_attendance.get_template" class="text-muted small">
 | |
|             <i class="icon-link small" style="color: #ccc;"></i></a>
 | |
| 		erpnext.hr.doctype.upload_attendance.upload_attendance.<b>get_template</b>
 | |
|         <i class="text-muted">()</i>
 | |
|     </p>
 | |
| 	<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
 | |
| </div>
 | |
| 	<br>
 | |
| 
 | |
| 	
 | |
| 
 | |
| 	
 | |
|         
 | |
|     
 | |
|     <p><span class="label label-info">Public API</span>
 | |
|         <br><code>/api/method/erpnext.hr.doctype.upload_attendance.upload_attendance.upload</code>
 | |
|     </p>
 | |
| 	<p class="docs-attr-name">
 | |
|         <a name="erpnext.hr.doctype.upload_attendance.upload_attendance.upload" href="#erpnext.hr.doctype.upload_attendance.upload_attendance.upload" class="text-muted small">
 | |
|             <i class="icon-link small" style="color: #ccc;"></i></a>
 | |
| 		erpnext.hr.doctype.upload_attendance.upload_attendance.<b>upload</b>
 | |
|         <i class="text-muted">()</i>
 | |
|     </p>
 | |
| 	<div class="docs-attr-desc"><p><span class="text-muted">No docs</span></p>
 | |
| </div>
 | |
| 	<br>
 | |
| 
 | |
| 	
 | |
| 
 | |
| 
 | |
|     
 | |
|     
 | |
| 
 | |
| 
 | |
| <!-- autodoc -->
 | |
| <!-- jinja -->
 | |
| <!-- static --> |