Skip to content
Draft
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"editable_grid": 1,
"engine": "InnoDB",
"field_order": [
"payment_gateway",
"payment_channel",
"company",
"is_default",
Expand All @@ -17,14 +16,6 @@
"message_examples"
],
"fields": [
{
"fieldname": "payment_gateway",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Payment Gateway",
"options": "Payment Gateway",
"reqd": 1
},
{
"default": "0",
"fieldname": "is_default",
Expand Down Expand Up @@ -86,7 +77,7 @@
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2025-07-14 16:49:55.210352",
"modified": "2025-11-21 15:18:14.428224",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Payment Gateway Account",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ class PaymentGatewayAccount(Document):
is_default: DF.Check
message: DF.SmallText | None
payment_account: DF.Link
payment_channel: DF.Literal["", "Email", "Phone"]
payment_gateway: DF.Link
payment_channel: DF.Literal["", "Email", "Phone", "Other"]
# end: auto-generated types

def autoname(self):
Expand Down
1 change: 1 addition & 0 deletions erpnext/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -449,3 +449,4 @@ erpnext.patches.v16_0.set_company_wise_warehouses
erpnext.patches.v16_0.set_valuation_method_on_companies
erpnext.patches.v15_0.migrate_old_item_wise_tax_detail_data_to_table
erpnext.patches.v16_0.migrate_budget_records_to_new_structure
erpnext.patches.v16_0.create_payment_gateway_account_custom_fields
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import frappe
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields


def execute():
if frappe.db.exists("Installed Application", {"app_name": "payments"}):
create_custom_fields(
{
"Payment Gateway Account": [
{
"fieldname": "payment_gateway",
"fieldtype": "Link",
"in_list_view": 1,
"label": "Payment Gateway",
"options": "Payment Gateway",
"reqd": 1,
}
]
}
)

frappe.clear_cache(doctype="Payment Gateway Account")
Loading