Skip to content

aleksas/erpnext_attendance_extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Attendance Extension (only for frappe/erpnext v11 master)

ERPNext Attendance DocType Extension

Install

Install attendance_extension app using commandline bench

cd /path/to/frappe-bench
bench get-app https://github.com/aleksas/erpnext_attendance_extension.git
bench install attendance_extension
bench migrate

See Bench Commands Cheatsheet for details.

This will create two DocTypes: Attendance Settings and Attendance Detail in Attendance Extension module. Also this app will alter Attendance DocType to include 'Attendance Detail' list.

Also see App Tutorials.

Custom scripts

Main custom scripting is concentrated in three files:

External attendance api

In /path/to/frappe-bench/apps/attendance_extension/attendance_extension/attendance_extension/doctype/attendance_settings directory you'll find external_api.py Python script containing stub functions. These stub functions should be modified in order to access data from external attendace api.

If you run

cd /path/to/frappe-bench
bench execute attendance_extension.attendance_extension.doctype.attendance_settings.tasks.test

it should generate some stub attendance records (haven't checked stub test myself).

IMPORTANT

If you are not going to use scheduled attendance updates (from external attendance info source) you have to comment regular task calls in hooks.py. You can find this file in /path/to/frappe-bench/apps/attendance_extension/attendance_extension directory.

License

MIT

About

ERPNext Attendance DocType Extension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published