Merge pull request #49309 from niyati34/fix/payment-entry-clear-party-type-v14hotfix

Fix/payment entry clear party type v14hotfix
This commit is contained in:
ruthra kumar
2025-08-26 13:27:38 +05:30
committed by GitHub

View File

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