-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Contact & Address - Request for Utility Service
- Loading branch information
1 parent
80e5b60
commit 4b0408b
Showing
3 changed files
with
24 additions
and
60 deletions.
There are no files selected for viewing
13 changes: 8 additions & 5 deletions
13
...illing/utility_billing/doctype/request_for_utility_service/request_for_utility_service.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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
// Copyright (c) 2024, Navari and contributors | ||
// For license information, please see license.txt | ||
|
||
// frappe.ui.form.on("Request for Utility Service", { | ||
// refresh(frm) { | ||
|
||
// }, | ||
// }); | ||
frappe.ui.form.on("Request for Utility Service", { | ||
refresh: function (frm) { | ||
frm.toggle_display("address_html", !frm.is_new()); | ||
if (!frm.is_new()) { | ||
frappe.contacts.render_address_and_contact(frm); | ||
} | ||
}, | ||
}); |
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
5 changes: 4 additions & 1 deletion
5
...illing/utility_billing/doctype/request_for_utility_service/request_for_utility_service.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 |
---|---|---|
@@ -1,9 +1,12 @@ | ||
# Copyright (c) 2024, Navari and contributors | ||
# For license information, please see license.txt | ||
|
||
from frappe.contacts.address_and_contact import load_address_and_contact | ||
|
||
# import frappe | ||
from frappe.model.document import Document | ||
|
||
|
||
class RequestforUtilityService(Document): | ||
pass | ||
def onload(self): | ||
load_address_and_contact(self) |