mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
Merge branch 'version-14-hotfix' into mergify/bp/version-14-hotfix/pr-32491
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");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -128,6 +128,9 @@ def repost(doc):
|
|||||||
if not frappe.db.exists("Repost Item Valuation", doc.name):
|
if not frappe.db.exists("Repost Item Valuation", doc.name):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# This is to avoid TooManyWritesError in case of large reposts
|
||||||
|
frappe.db.MAX_WRITES_PER_TRANSACTION *= 4
|
||||||
|
|
||||||
doc.set_status("In Progress")
|
doc.set_status("In Progress")
|
||||||
if not frappe.flags.in_test:
|
if not frappe.flags.in_test:
|
||||||
frappe.db.commit()
|
frappe.db.commit()
|
||||||
|
|||||||
Reference in New Issue
Block a user