Skip to content

Commit

Permalink
fix(minor): fix dynamically changing grid properties
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehta committed Apr 13, 2021
1 parent 65f25c2 commit 3c58fd4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion erpnext/accounts/doctype/bank/bank.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ let add_fields_to_mapping_table = function (frm) {
});
});

frm.fields_dict.bank_transaction_mapping.grid.update_docfield_property('frm.fields_dict.bank_transaction_mapping.grid', 'options', options);
frm.fields_dict.bank_transaction_mapping.grid.update_docfield_property(
'bank_transaction_field', 'options', options
);
};

erpnext.integrations.refreshPlaidLink = class refreshPlaidLink {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ erpnext.accounts.PaymentReconciliationController = frappe.ui.form.Controller.ext

if (invoices) {
this.frm.fields_dict.payment.grid.update_docfield_property(
'invoice_number', options, "\n" + invoices.join("\n")
'invoice_number', 'options', "\n" + invoices.join("\n")
)

$.each(me.frm.doc.payments || [], function(i, p) {
Expand Down
4 changes: 1 addition & 3 deletions erpnext/accounts/doctype/pos_settings/pos_settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ frappe.ui.form.on('POS Settings', {
});

frm.fields_dict.invoice_fields.grid.update_docfield_property(
'fieldname',
'options',
[""].concat(fields)
'fieldname', 'options', [""].concat(fields)
);
});

Expand Down

0 comments on commit 3c58fd4

Please sign in to comment.