refactor: keep old against fields intact

This commit is contained in:
Gursheen Anand 2023-11-08 12:55:41 +05:30
parent 5f5d75a0bb
commit f9c88ea7bc
2 changed files with 30 additions and 16 deletions

View File

@ -19,6 +19,7 @@
"credit_in_account_currency", "credit_in_account_currency",
"against_type", "against_type",
"against", "against",
"against_link",
"against_voucher_type", "against_voucher_type",
"against_voucher", "against_voucher",
"voucher_type", "voucher_type",
@ -137,13 +138,19 @@
"options": "DocType" "options": "DocType"
}, },
{ {
"fieldname": "against", "fieldname": "against",
"fieldtype": "Dynamic Link", "fieldtype": "Text",
"in_filter": 1, "in_filter": 1,
"label": "Against", "label": "Against",
"oldfieldname": "against", "oldfieldname": "against",
"oldfieldtype": "Text", "oldfieldtype": "Text"
"options": "against_type" },
{
"fieldname": "against_link",
"fieldtype": "Dynamic Link",
"in_filter": 1,
"label": "Against",
"options": "against_type"
}, },
{ {
"fieldname": "against_voucher_type", "fieldname": "against_voucher_type",
@ -295,7 +302,7 @@
"idx": 1, "idx": 1,
"in_create": 1, "in_create": 1,
"links": [], "links": [],
"modified": "2023-09-25 12:03:23.031733", "modified": "2023-11-08 12:20:23.031733",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Accounts", "module": "Accounts",
"name": "GL Entry", "name": "GL Entry",

View File

@ -38,7 +38,8 @@
"is_advance", "is_advance",
"user_remark", "user_remark",
"against_type", "against_type",
"against_account" "against_account",
"against_account_link"
], ],
"fields": [ "fields": [
{ {
@ -249,15 +250,21 @@
"print_hide": 1 "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", "fieldtype": "Dynamic Link",
"hidden": 1,
"label": "Against Account", "label": "Against Account",
"no_copy": 1, "no_copy": 1,
"oldfieldname": "against_account", "options": "against_type"
"oldfieldtype": "Text",
"options": "against_type",
"print_hide": 1
}, },
{ {
"collapsible": 1, "collapsible": 1,
@ -294,7 +301,7 @@
"idx": 1, "idx": 1,
"istable": 1, "istable": 1,
"links": [], "links": [],
"modified": "2023-10-11 13:05:21.489496", "modified": "2023-11-08 12:20:21.489496",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Accounts", "module": "Accounts",
"name": "Journal Entry Account", "name": "Journal Entry Account",