mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 22:49:19 +00:00
Merge pull request #32504 from frappe/mergify/bp/version-13-hotfix/pr-32478
feat(JE): trigger account field when fetched from template (backport #32478)
This commit is contained in:
@@ -173,8 +173,8 @@ frappe.ui.form.on("Journal Entry", {
|
|||||||
var update_jv_details = function(doc, r) {
|
var update_jv_details = function(doc, r) {
|
||||||
$.each(r, function(i, d) {
|
$.each(r, function(i, d) {
|
||||||
var row = frappe.model.add_child(doc, "Journal Entry Account", "accounts");
|
var row = frappe.model.add_child(doc, "Journal Entry Account", "accounts");
|
||||||
row.account = d.account;
|
frappe.model.set_value(row.doctype, row.name, "account", d.account)
|
||||||
row.balance = d.balance;
|
frappe.model.set_value(row.doctype, row.name, "balance", d.balance)
|
||||||
});
|
});
|
||||||
refresh_field("accounts");
|
refresh_field("accounts");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user