feat(JE): trigger account field when fetched from template

Closes #32409

(cherry picked from commit c35adcf5a1)
This commit is contained in:
Dany Robert
2022-10-03 19:31:20 +05:30
committed by Mergify
parent 3648745e5e
commit baa4fec611

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");
}