mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
Merge pull request #45411 from frappe/mergify/bp/version-15-hotfix/pr-45291
fix: don't update party-type on change of cost center in Journal Entry (backport #45291)
This commit is contained in:
@@ -430,12 +430,6 @@ frappe.ui.form.on("Journal Entry Account", {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
cost_center: function (frm, dt, dn) {
|
|
||||||
// Don't reset for Gain/Loss type journals, as it will make Debit and Credit values '0'
|
|
||||||
if (frm.doc.voucher_type != "Exchange Gain Or Loss") {
|
|
||||||
erpnext.journal_entry.set_account_details(frm, dt, dn);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
account: function (frm, dt, dn) {
|
account: function (frm, dt, dn) {
|
||||||
erpnext.journal_entry.set_account_details(frm, dt, dn);
|
erpnext.journal_entry.set_account_details(frm, dt, dn);
|
||||||
|
|||||||
Reference in New Issue
Block a user