Merge pull request #43186 from frappe/mergify/bp/version-15-hotfix/pr-43171

fix: set `party_type` null when `payment_type` is changed to `Internal Transfer` (backport #43171)
This commit is contained in:
Sagar Vora
2024-09-12 12:03:28 +05:30
committed by GitHub

View File

@@ -385,7 +385,15 @@ frappe.ui.form.on("Payment Entry", {
payment_type: function (frm) {
if (frm.doc.payment_type == "Internal Transfer") {
$.each(
["party", "party_balance", "paid_from", "paid_to", "references", "total_allocated_amount"],
[
"party",
"party_type",
"party_balance",
"paid_from",
"paid_to",
"references",
"total_allocated_amount",
],
function (i, field) {
frm.set_value(field, null);
}