fix(payment_entry): clear party_type when switching to Internal Transfer to avoid 'Supplier None not found'

This commit is contained in:
niyati34
2025-08-25 19:35:18 +05:30
parent 7f617a54d1
commit e27dd64044

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