Skip to content

Commit

Permalink
Merge branch 'staging' into production
Browse files Browse the repository at this point in the history
  • Loading branch information
sahil28297 committed Jul 28, 2021
2 parents 1255340 + 073ce80 commit f5280c4
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 327 deletions.
2 changes: 1 addition & 1 deletion bloomstack_core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

__version__ = '2.2.4'
__version__ = '2.3.0'
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)

0 comments on commit f5280c4

Please sign in to comment.