diff --git a/models/doctype/account/account_client.js b/models/doctype/account/account_client.js index 33047257..5e0d44d2 100644 --- a/models/doctype/account/account_client.js +++ b/models/doctype/account/account_client.js @@ -2,19 +2,19 @@ const BaseList = require('frappejs/client/view/list'); const BaseForm = require('frappejs/client/view/form'); class AccountList extends BaseList { - get_fields() { - return ['name', 'account_type']; - } - get_row_html(data) { + get_fields() { + return ['name', 'account_type']; + } + get_row_html(data) { return `${data.name} (${data.account_type})`; - } + } } class AccountForm extends BaseForm { make() { - this.super(); + this.super(); - // override controller event + // override controller event this.controls['parent_account'].get_filters = (query) => { return { keywords: ["like", query], @@ -25,6 +25,6 @@ class AccountForm extends BaseForm { } module.exports = { - Form: AccountForm, - List: AccountList + Form: AccountForm, + List: AccountList } \ No newline at end of file