mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 05:09:11 +00:00
fix: Styling and minor fixes
This commit is contained in:
@@ -49,9 +49,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "plaid_env",
|
"fieldname": "plaid_env",
|
||||||
"fieldtype": "Data",
|
"fieldtype": "Select",
|
||||||
"in_list_view": 1,
|
"in_list_view": 1,
|
||||||
"label": "Plaid Environment"
|
"label": "Plaid Environment",
|
||||||
|
"options": "sandbox\ndevelopment\nproduction"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "column_break_2",
|
"fieldname": "column_break_2",
|
||||||
@@ -69,7 +70,7 @@
|
|||||||
],
|
],
|
||||||
"issingle": 1,
|
"issingle": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2020-01-05 10:00:22.137832",
|
"modified": "2020-02-07 15:21:11.616231",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "ERPNext Integrations",
|
"module": "ERPNext Integrations",
|
||||||
"name": "Plaid Settings",
|
"name": "Plaid Settings",
|
||||||
|
|||||||
@@ -9,11 +9,6 @@ def _rename_single_field(**kwargs):
|
|||||||
frappe.db.sql("UPDATE tabSingles SET field='{new_name}' WHERE doctype='{doctype}' AND field='{old_name}';".format(**kwargs)) #nosec
|
frappe.db.sql("UPDATE tabSingles SET field='{new_name}' WHERE doctype='{doctype}' AND field='{old_name}';".format(**kwargs)) #nosec
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
BR = "Bank Reconciliation"
|
_rename_single_field(doctype = "Bank Reconciliation", old_name = "bank_account" , new_name = "account")
|
||||||
AC = "account"
|
_rename_single_field(doctype = "Bank Reconciliation", old_name = "bank_account_no", new_name = "bank_account")
|
||||||
BA = "bank_account"
|
frappe.reload_doc("Accounts", "doctype", "Bank Reconciliation")
|
||||||
BAN = "bank_account_no"
|
|
||||||
|
|
||||||
_rename_single_field(doctype = BR, old_name = BA , new_name = AC)
|
|
||||||
_rename_single_field(doctype = BR, old_name = BAN, new_name = BA)
|
|
||||||
frappe.reload_doc("Accounts", "doctype", BR)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user