Skip to content

Commit

Permalink
fix(Payment Entry): patch to add missing custom field
Browse files Browse the repository at this point in the history
  • Loading branch information
Sajinsr committed Aug 1, 2024
1 parent 9e8806a commit 14ff9cb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions healthcare/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ healthcare.patches.v15_0.create_custom_fields_in_sales_invoice_item
healthcare.patches.v15_0.rename_automate_appointment_invoicing
healthcare.patches.v15_0.rename_medical_code_standard_and_medical_code
healthcare.patches.v15_0.setup_service_request
healthcare.patches.v15_0.create_custom_field_in_payment_entry

[post_model_sync]
healthcare.patches.v15_0.rename_field_medical_department_in_appoitment_type_service_item
Expand Down
18 changes: 18 additions & 0 deletions healthcare/patches/v15_0/create_custom_field_in_payment_entry.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields


def execute():
custom_field = {
"Payment Entry": [
{
"fieldname": "treatment_counselling",
"label": "Treatment Counselling",
"fieldtype": "Link",
"options": "Treatment Counselling",
"insert_after": "payment_order",
"read_only": True,
},
]
}

create_custom_fields(custom_field)

0 comments on commit 14ff9cb

Please sign in to comment.