refactor: keep old against fields intact
diff --git a/erpnext/accounts/doctype/gl_entry/gl_entry.json b/erpnext/accounts/doctype/gl_entry/gl_entry.json
index 1adeaa5..16df40f 100644
--- a/erpnext/accounts/doctype/gl_entry/gl_entry.json
+++ b/erpnext/accounts/doctype/gl_entry/gl_entry.json
@@ -19,6 +19,7 @@
"credit_in_account_currency",
"against_type",
"against",
+ "against_link",
"against_voucher_type",
"against_voucher",
"voucher_type",
@@ -137,13 +138,19 @@
"options": "DocType"
},
{
- "fieldname": "against",
- "fieldtype": "Dynamic Link",
- "in_filter": 1,
- "label": "Against",
- "oldfieldname": "against",
- "oldfieldtype": "Text",
- "options": "against_type"
+ "fieldname": "against",
+ "fieldtype": "Text",
+ "in_filter": 1,
+ "label": "Against",
+ "oldfieldname": "against",
+ "oldfieldtype": "Text"
+ },
+ {
+ "fieldname": "against_link",
+ "fieldtype": "Dynamic Link",
+ "in_filter": 1,
+ "label": "Against",
+ "options": "against_type"
},
{
"fieldname": "against_voucher_type",
@@ -295,7 +302,7 @@
"idx": 1,
"in_create": 1,
"links": [],
- "modified": "2023-09-25 12:03:23.031733",
+ "modified": "2023-11-08 12:20:23.031733",
"modified_by": "Administrator",
"module": "Accounts",
"name": "GL Entry",
diff --git a/erpnext/accounts/doctype/journal_entry_account/journal_entry_account.json b/erpnext/accounts/doctype/journal_entry_account/journal_entry_account.json
index 0e5dde0..8d8c837 100644
--- a/erpnext/accounts/doctype/journal_entry_account/journal_entry_account.json
+++ b/erpnext/accounts/doctype/journal_entry_account/journal_entry_account.json
@@ -38,7 +38,8 @@
"is_advance",
"user_remark",
"against_type",
- "against_account"
+ "against_account",
+ "against_account_link"
],
"fields": [
{
@@ -249,15 +250,21 @@
"print_hide": 1
},
{
- "fieldname": "against_account",
+ "fieldname": "against_account",
+ "fieldtype": "Text",
+ "hidden": 1,
+ "label": "Against Account",
+ "no_copy": 1,
+ "oldfieldname": "against_account",
+ "oldfieldtype": "Text",
+ "print_hide": 1
+ },
+ {
+ "fieldname": "against_account_link",
"fieldtype": "Dynamic Link",
- "hidden": 1,
"label": "Against Account",
"no_copy": 1,
- "oldfieldname": "against_account",
- "oldfieldtype": "Text",
- "options": "against_type",
- "print_hide": 1
+ "options": "against_type"
},
{
"collapsible": 1,
@@ -294,7 +301,7 @@
"idx": 1,
"istable": 1,
"links": [],
- "modified": "2023-10-11 13:05:21.489496",
+ "modified": "2023-11-08 12:20:21.489496",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Journal Entry Account",