-
Notifications
You must be signed in to change notification settings - Fork 33
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 #110 from harshtandiya/daily-visit
feat: daily visit doctype added
- Loading branch information
Showing
9 changed files
with
120 additions
and
6 deletions.
There are no files selected for viewing
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
Empty file.
6 changes: 6 additions & 0 deletions
6
changemakers/frappe_changemakers/doctype/daily_visit_update/daily_visit_update.js
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,6 @@ | ||
// Copyright (c) 2023, [email protected] and contributors | ||
// For license information, please see license.txt | ||
|
||
frappe.ui.form.on("Daily Visit Update", { | ||
refresh(frm) {}, | ||
}); |
66 changes: 66 additions & 0 deletions
66
changemakers/frappe_changemakers/doctype/daily_visit_update/daily_visit_update.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,66 @@ | ||
{ | ||
"actions": [], | ||
"allow_rename": 1, | ||
"autoname": "format:{date}-DVU{###}", | ||
"creation": "2023-07-12 21:45:41.479782", | ||
"default_view": "List", | ||
"doctype": "DocType", | ||
"editable_grid": 1, | ||
"engine": "InnoDB", | ||
"field_order": [ | ||
"beneficiary", | ||
"date", | ||
"daily_update" | ||
], | ||
"fields": [ | ||
{ | ||
"fieldname": "beneficiary", | ||
"fieldtype": "Link", | ||
"in_filter": 1, | ||
"in_list_view": 1, | ||
"in_standard_filter": 1, | ||
"label": "Beneficiary", | ||
"options": "Beneficiary", | ||
"reqd": 1 | ||
}, | ||
{ | ||
"fieldname": "date", | ||
"fieldtype": "Date", | ||
"in_filter": 1, | ||
"in_list_view": 1, | ||
"in_standard_filter": 1, | ||
"label": "Date" | ||
}, | ||
{ | ||
"fieldname": "daily_update", | ||
"fieldtype": "Text", | ||
"in_list_view": 1, | ||
"label": "Daily Update" | ||
} | ||
], | ||
"index_web_pages_for_search": 1, | ||
"links": [], | ||
"modified": "2023-07-13 01:07:38.374716", | ||
"modified_by": "Administrator", | ||
"module": "Frappe Changemakers", | ||
"name": "Daily Visit Update", | ||
"naming_rule": "Expression", | ||
"owner": "Administrator", | ||
"permissions": [ | ||
{ | ||
"create": 1, | ||
"delete": 1, | ||
"email": 1, | ||
"export": 1, | ||
"print": 1, | ||
"read": 1, | ||
"report": 1, | ||
"role": "System Manager", | ||
"share": 1, | ||
"write": 1 | ||
} | ||
], | ||
"sort_field": "modified", | ||
"sort_order": "DESC", | ||
"states": [] | ||
} |
11 changes: 11 additions & 0 deletions
11
changemakers/frappe_changemakers/doctype/daily_visit_update/daily_visit_update.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,11 @@ | ||
# Copyright (c) 2023, [email protected] and contributors | ||
# For license information, please see license.txt | ||
|
||
from frappe.model.document import Document | ||
from frappe.utils import today | ||
|
||
|
||
class DailyVisitUpdate(Document): | ||
def before_naming(self): | ||
if not self.date: | ||
self.date = today() |
9 changes: 9 additions & 0 deletions
9
changemakers/frappe_changemakers/doctype/daily_visit_update/test_daily_visit_update.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) 2023, [email protected] and Contributors | ||
# See license.txt | ||
|
||
# import frappe | ||
from frappe.tests.utils import FrappeTestCase | ||
|
||
|
||
class TestDailyVisitUpdate(FrappeTestCase): | ||
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