mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
fix(patch): create healthcare patch only if domain activated
This commit is contained in:
@@ -15,6 +15,9 @@ def execute():
|
|||||||
frappe.reload_doc('accounts', 'doctype', 'loyalty_program')
|
frappe.reload_doc('accounts', 'doctype', 'loyalty_program')
|
||||||
frappe.reload_doc('accounts', 'doctype', 'sales_invoice_item')
|
frappe.reload_doc('accounts', 'doctype', 'sales_invoice_item')
|
||||||
|
|
||||||
|
if "healthcare" not in frappe.get_active_domains():
|
||||||
|
return
|
||||||
|
|
||||||
healthcare_custom_field_in_sales_invoice()
|
healthcare_custom_field_in_sales_invoice()
|
||||||
for si_ref_doc in sales_invoice_referenced_doc:
|
for si_ref_doc in sales_invoice_referenced_doc:
|
||||||
if frappe.db.exists('DocType', si_ref_doc):
|
if frappe.db.exists('DocType', si_ref_doc):
|
||||||
|
|||||||
@@ -837,7 +837,7 @@
|
|||||||
"label": "Create Chart Of Accounts Based On",
|
"label": "Create Chart Of Accounts Based On",
|
||||||
"length": 0,
|
"length": 0,
|
||||||
"no_copy": 0,
|
"no_copy": 0,
|
||||||
"options": "\nStandard Template\nExisting Company\n\n\n",
|
"options": "\nStandard Template\nExisting Company",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"precision": "",
|
"precision": "",
|
||||||
"print_hide": 0,
|
"print_hide": 0,
|
||||||
@@ -871,7 +871,7 @@
|
|||||||
"label": "Chart Of Accounts Template",
|
"label": "Chart Of Accounts Template",
|
||||||
"length": 0,
|
"length": 0,
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"options": "\n\n\n",
|
"options": "",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"precision": "",
|
"precision": "",
|
||||||
"print_hide": 0,
|
"print_hide": 0,
|
||||||
@@ -2836,7 +2836,7 @@
|
|||||||
"istable": 0,
|
"istable": 0,
|
||||||
"max_attachments": 0,
|
"max_attachments": 0,
|
||||||
"menu_index": 0,
|
"menu_index": 0,
|
||||||
"modified": "2018-09-01 16:03:30.716918",
|
"modified": "2018-09-07 16:03:30.716918",
|
||||||
"modified_by": "cave@aperture.com",
|
"modified_by": "cave@aperture.com",
|
||||||
"module": "Setup",
|
"module": "Setup",
|
||||||
"name": "Company",
|
"name": "Company",
|
||||||
|
|||||||
Reference in New Issue
Block a user