mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 14:32:13 +00:00
fix: set party_type null when payment_type is changed to Internal Transfer
(cherry picked from commit 502cf0eb8d)
This commit is contained in:
@@ -385,7 +385,15 @@ frappe.ui.form.on("Payment Entry", {
|
|||||||
payment_type: function (frm) {
|
payment_type: function (frm) {
|
||||||
if (frm.doc.payment_type == "Internal Transfer") {
|
if (frm.doc.payment_type == "Internal Transfer") {
|
||||||
$.each(
|
$.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) {
|
function (i, field) {
|
||||||
frm.set_value(field, null);
|
frm.set_value(field, null);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user