fix(minor): fix dynamically changing grid properties
This commit is contained in:
parent
65f25c27b3
commit
3c58fd4d5e
@ -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 {
|
erpnext.integrations.refreshPlaidLink = class refreshPlaidLink {
|
||||||
|
@ -235,7 +235,7 @@ erpnext.accounts.PaymentReconciliationController = frappe.ui.form.Controller.ext
|
|||||||
|
|
||||||
if (invoices) {
|
if (invoices) {
|
||||||
this.frm.fields_dict.payment.grid.update_docfield_property(
|
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) {
|
$.each(me.frm.doc.payments || [], function(i, p) {
|
||||||
|
@ -17,9 +17,7 @@ frappe.ui.form.on('POS Settings', {
|
|||||||
});
|
});
|
||||||
|
|
||||||
frm.fields_dict.invoice_fields.grid.update_docfield_property(
|
frm.fields_dict.invoice_fields.grid.update_docfield_property(
|
||||||
'fieldname',
|
'fieldname', 'options', [""].concat(fields)
|
||||||
'options',
|
|
||||||
[""].concat(fields)
|
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user