Skip to content

Commit

Permalink
fix: set party_type null when payment_type is changed to Internal Tra…
Browse files Browse the repository at this point in the history
…nsfer

(cherry picked from commit 502cf0e)
  • Loading branch information
vishakhdesai authored and mergify[bot] committed Sep 12, 2024
1 parent 28607f0 commit 45ff8fa
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion erpnext/accounts/doctype/payment_entry/payment_entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 45ff8fa

Please sign in to comment.