fix: set party_type null when payment_type is changed to Internal Transfer

This commit is contained in:
Vishakh Desai
2024-09-11 14:21:48 +05:30
parent 1bf60248d9
commit 502cf0eb8d

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