Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions bloomstack_core/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"/assets/bloomstack_core/js/conf.js",
"/assets/bloomstack_core/js/query_report.js",
"/assets/bloomstack_core/js/banner.js",
"/assets/js/address_and_contact.min.js",
"/assets/js/bloomstack_desk.js"
]
app_include_css = [
Expand All @@ -45,7 +44,6 @@
"/assets/bloomstack_core/css/banner.css",
"/assets/bloomstack_core/css/desk.css",
"/assets/bloomstack_core/css/order_desk.css",
"/assets/bloomstack_core/css/address_and_contact.css",
"/assets/bloomstack_core/css/contract.css",
"/assets/css/reports.min.css"
]
Expand Down
7 changes: 0 additions & 7 deletions bloomstack_core/public/css/address_and_contact.css

This file was deleted.

182 changes: 0 additions & 182 deletions bloomstack_core/public/js/address_and_contact.js

This file was deleted.

40 changes: 0 additions & 40 deletions bloomstack_core/public/js/templates/address_list.html

This file was deleted.

69 changes: 0 additions & 69 deletions bloomstack_core/public/js/templates/contact_list.html

This file was deleted.

26 changes: 0 additions & 26 deletions bloomstack_core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,29 +172,3 @@ def create_authorization_request(dt, dn, contact_email, contact_name):
new_authorization_request.authorizer_email = contact_email
new_authorization_request.authorizer_name = contact_name
new_authorization_request.save()

@frappe.whitelist()
def link_address_or_contact(ref_doctype, ref_name, link_doctype, link_name):
doc = frappe.get_doc(ref_doctype, ref_name)
doc.append("links", {"link_doctype": link_doctype, "link_name": link_name})
doc.save()


@frappe.whitelist()
def unlink_address_or_contact(ref_doctype, ref_name, doctype, name):
doc = frappe.get_doc(ref_doctype, ref_name)
links = doc.get("links")
for data in links:
if data.link_doctype == doctype and data.link_name == name:
links.remove(data)
doc.save()


@frappe.whitelist()
def delete_address_or_contact(ref_doctype, ref_name, doctype, name):
doc = frappe.get_doc(ref_doctype, ref_name)
links = doc.get("links")
if len(links) > 1:
unlink_address_or_contact(ref_doctype, ref_name, doctype, name)
else:
frappe.delete_doc(ref_doctype, ref_name)