Skip to content

Commit f5280c4

Browse files
committed
Merge branch 'staging' into production
2 parents 1255340 + 073ce80 commit f5280c4

File tree

7 files changed

+1
-327
lines changed

7 files changed

+1
-327
lines changed

bloomstack_core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# -*- coding: utf-8 -*-
22
from __future__ import unicode_literals
33

4-
__version__ = '2.2.4'
4+
__version__ = '2.3.0'

bloomstack_core/hooks.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"/assets/bloomstack_core/js/conf.js",
3636
"/assets/bloomstack_core/js/query_report.js",
3737
"/assets/bloomstack_core/js/banner.js",
38-
"/assets/js/address_and_contact.min.js",
3938
"/assets/js/bloomstack_desk.js"
4039
]
4140
app_include_css = [
@@ -45,7 +44,6 @@
4544
"/assets/bloomstack_core/css/banner.css",
4645
"/assets/bloomstack_core/css/desk.css",
4746
"/assets/bloomstack_core/css/order_desk.css",
48-
"/assets/bloomstack_core/css/address_and_contact.css",
4947
"/assets/bloomstack_core/css/contract.css",
5048
"/assets/css/reports.min.css"
5149
]

bloomstack_core/public/css/address_and_contact.css

Lines changed: 0 additions & 7 deletions
This file was deleted.

bloomstack_core/public/js/address_and_contact.js

Lines changed: 0 additions & 182 deletions
This file was deleted.

bloomstack_core/public/js/templates/address_list.html

Lines changed: 0 additions & 40 deletions
This file was deleted.

bloomstack_core/public/js/templates/contact_list.html

Lines changed: 0 additions & 69 deletions
This file was deleted.

bloomstack_core/utils.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -172,29 +172,3 @@ def create_authorization_request(dt, dn, contact_email, contact_name):
172172
new_authorization_request.authorizer_email = contact_email
173173
new_authorization_request.authorizer_name = contact_name
174174
new_authorization_request.save()
175-
176-
@frappe.whitelist()
177-
def link_address_or_contact(ref_doctype, ref_name, link_doctype, link_name):
178-
doc = frappe.get_doc(ref_doctype, ref_name)
179-
doc.append("links", {"link_doctype": link_doctype, "link_name": link_name})
180-
doc.save()
181-
182-
183-
@frappe.whitelist()
184-
def unlink_address_or_contact(ref_doctype, ref_name, doctype, name):
185-
doc = frappe.get_doc(ref_doctype, ref_name)
186-
links = doc.get("links")
187-
for data in links:
188-
if data.link_doctype == doctype and data.link_name == name:
189-
links.remove(data)
190-
doc.save()
191-
192-
193-
@frappe.whitelist()
194-
def delete_address_or_contact(ref_doctype, ref_name, doctype, name):
195-
doc = frappe.get_doc(ref_doctype, ref_name)
196-
links = doc.get("links")
197-
if len(links) > 1:
198-
unlink_address_or_contact(ref_doctype, ref_name, doctype, name)
199-
else:
200-
frappe.delete_doc(ref_doctype, ref_name)

0 commit comments

Comments
 (0)