Skip to content

Commit

Permalink
feat: add column selection heuristics
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Oct 1, 2024
1 parent d540d03 commit 454518b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions erpnext/edi/doctype/code_list/code_list_import.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,19 @@ function show_column_selection_dialog(context) {
label: __("as Title"),
fieldtype: "Select",
options: [null].concat(context.columns),
default: context.columns.includes("name") ? "name" : null,
},
{
fieldname: "code_column",
label: __("as Code"),
fieldtype: "Select",
options: context.columns,
reqd: 1,
default: context.columns.includes("code")
? "code"
: context.columns.includes("value")
? "value"
: null,
},
{
fieldname: "filters_column",
Expand Down

0 comments on commit 454518b

Please sign in to comment.