-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from alyf-de/drc-26
feat: add option to enforce mandatory breaks (DRC-26)
- Loading branch information
Showing
8 changed files
with
214 additions
and
13 deletions.
There are no files selected for viewing
Empty file.
44 changes: 44 additions & 0 deletions
44
...tszeiterfassung_s4a/arbeitszeiterfassung_s4a/doctype/mandatory_break/mandatory_break.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"actions": [], | ||
"allow_rename": 1, | ||
"creation": "2024-09-27 15:10:44.141822", | ||
"doctype": "DocType", | ||
"editable_grid": 1, | ||
"engine": "InnoDB", | ||
"field_order": [ | ||
"working_time", | ||
"additional_break_time" | ||
], | ||
"fields": [ | ||
{ | ||
"fieldname": "working_time", | ||
"fieldtype": "Duration", | ||
"hide_days": 1, | ||
"hide_seconds": 1, | ||
"in_list_view": 1, | ||
"label": "Working Time (Greater Than)", | ||
"reqd": 1 | ||
}, | ||
{ | ||
"fieldname": "additional_break_time", | ||
"fieldtype": "Duration", | ||
"hide_days": 1, | ||
"hide_seconds": 1, | ||
"in_list_view": 1, | ||
"label": "Additional Break", | ||
"reqd": 1 | ||
} | ||
], | ||
"index_web_pages_for_search": 1, | ||
"istable": 1, | ||
"links": [], | ||
"modified": "2024-09-28 18:33:23.991534", | ||
"modified_by": "Administrator", | ||
"module": "Arbeitszeiterfassung S4A", | ||
"name": "Mandatory Break", | ||
"owner": "Administrator", | ||
"permissions": [], | ||
"sort_field": "modified", | ||
"sort_order": "DESC", | ||
"states": [] | ||
} |
9 changes: 9 additions & 0 deletions
9
arbeitszeiterfassung_s4a/arbeitszeiterfassung_s4a/doctype/mandatory_break/mandatory_break.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Copyright (c) 2024, ALYF GmbH and contributors | ||
# For license information, please see license.txt | ||
|
||
# import frappe | ||
from frappe.model.document import Document | ||
|
||
|
||
class MandatoryBreak(Document): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Working Time Settings,Arbeitszeiteinstellungen, | ||
Default Activity,Standardtätigkeit, | ||
Enforce Mandatory Breaks,Verpflichtende Pausen erzwingen, | ||
Break,Pause, | ||
Additional Break,Zusätzliche Pause, | ||
Indicated Break,Angegebene Pause, | ||
Mandatory Break,Verpflichtende Pause, | ||
Mandatory Breaks,Verpflichtende Pausen, | ||
Total Time,Gesamtzeit, | ||
Working Time,Arbeitszeit, | ||
Working Time (Greater Than),Arbeitszeit (Größer als), | ||
Project Time,Projektzeit, |