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:
Deepesh Garg
2022-10-05 17:29:05 +05:30
committed by GitHub

View File

@@ -173,8 +173,8 @@ frappe.ui.form.on("Journal Entry", {
var update_jv_details = function(doc, r) {
$.each(r, function(i, d) {
var row = frappe.model.add_child(doc, "Journal Entry Account", "accounts");
row.account = d.account;
row.balance = d.balance;
frappe.model.set_value(row.doctype, row.name, "account", d.account)
frappe.model.set_value(row.doctype, row.name, "balance", d.balance)
});
refresh_field("accounts");
}