# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from . import __version__ as app_version

app_name = "pointage_cdk"
app_title = "Pointage Cdk"
app_publisher = "dHaj"
app_description = "application pointage cdk"
app_icon = "octicon octicon-file-directory"
app_color = "grey"
app_email = "admin@admin.com"
app_license = "MIT"

# Includes in <head>
# ------------------

# include js, css files in header of desk.html
# app_include_css = "/assets/pointage_cdk/css/pointage_cdk.css"
# app_include_js = "/assets/pointage_cdk/js/pointage_cdk.js"

# include js, css files in header of web template
# web_include_css = "/assets/pointage_cdk/css/pointage_cdk.css"
# web_include_js = "/assets/pointage_cdk/js/pointage_cdk.js"

# include custom scss in every website theme (without file extension ".scss")
# website_theme_scss = "pointage_cdk/public/scss/website"

# include js, css files in header of web form
# webform_include_js = {"doctype": "public/js/doctype.js"}
# webform_include_css = {"doctype": "public/css/doctype.css"}

# include js in page
# page_js = {"page" : "public/js/file.js"}

# include js in doctype views
# doctype_js = {"Attendance" : "public/js/Attendance_list.js"}
doctype_list_js = {"Attendance" : "public/js/Attendance_list.js"}
# doctype_tree_js = {"doctype" : "public/js/doctype_tree.js"}
# doctype_calendar_js = {"doctype" : "public/js/doctype_calendar.js"}

# Home Pages
# ----------

# application home page (will override Website Settings)
# home_page = "login"

# website user home page (by Role)
# role_home_page = {
#	"Role": "home_page"
# }

# Generators
# ----------

# automatically create page for each record of this doctype
# website_generators = ["Web Page"]

# Installation
# ------------

# before_install = "pointage_cdk.install.before_install"
# after_install = "pointage_cdk.install.after_install"

# Desk Notifications
# ------------------
# See frappe.core.notifications.get_notification_config

# notification_config = "pointage_cdk.notifications.get_notification_config"

# Permissions
# -----------
# Permissions evaluated in scripted ways

# permission_query_conditions = {
# 	"Event": "frappe.desk.doctype.event.event.get_permission_query_conditions",
# }

# has_permission = {
# 	"Event": "frappe.desk.doctype.event.event.has_permission",
# }

# # DocType Class
# # ---------------
# # Override standard doctype classes

# override_doctype_class = {
# 	"Attendance": "pointage_cdk.custom_class.CustomAttendance.CustomAttendance"
# }

# # Document Events
# # ---------------
# # Hook on document methods and events

# doc_events = {
# 	# "Attendance": {
# 	# 	# "mark_attendance": "method",
# 	# 	"on_validate": "pointage_cdk.events.eventAttendance.setValuesManagement",
# 	# 	"on_trash": "method"
# 	# }
# 	"Employee": {
# 		"mark_attendance": "method",
# 		"on_update": "pointage_cdk.events.eventAttendance.updateEmployee",
# 		"on_trash": "method"
# 	}
# }

# Scheduled Tasks
# ---------------

# scheduler_events = {
# 	"all": [
# 		"pointage_cdk.tasks.all"
# 	],
# 	"daily": [
# 		"pointage_cdk.tasks.daily"
# 	],
# 	"hourly": [
# 		"pointage_cdk.tasks.hourly"
# 	],
# 	"weekly": [
# 		"pointage_cdk.tasks.weekly"
# 	]
# 	"monthly": [
# 		"pointage_cdk.tasks.monthly"
# 	]
# }

# Testing
# -------

# before_tests = "pointage_cdk.install.before_tests"

# Overriding Methods
# ------------------------------
#
override_whitelisted_methods = {
    # "erpnext.hr.doctype.attendance.attendance.mark_bulk_attendance": "pointage_cdk.events.eventAttendance.mark_bulk_attendance"
	"erpnext.hr.doctype.attendance.attendance.get_unmarked_days": "pointage_cdk.events.eventAttendance.get_unmarked_days"
    
}
fixtures = ["Custom Field", "DocType", "Property Setter"]



#
# each overriding function accepts a `data` argument;
# generated from the base implementation of the doctype dashboard,
# along with any modifications made in other Frappe apps
# override_doctype_dashboards = {
# 	"Task": "pointage_cdk.task.get_dashboard_data"
# }

# exempt linked doctypes from being automatically cancelled
#
# auto_cancel_exempted_doctypes = ["Auto Repeat"]

