mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
fix: do not update PE title during data import
Related issue: ISS-20-21-10132
This commit is contained in:
@@ -455,6 +455,10 @@ class PaymentEntry(AccountsController):
|
|||||||
.format(total_negative_outstanding), InvalidPaymentEntry)
|
.format(total_negative_outstanding), InvalidPaymentEntry)
|
||||||
|
|
||||||
def set_title(self):
|
def set_title(self):
|
||||||
|
if frappe.flags.in_import and self.title:
|
||||||
|
# do not set title dynamically if title exists during data import.
|
||||||
|
return
|
||||||
|
|
||||||
if self.payment_type in ("Receive", "Pay"):
|
if self.payment_type in ("Receive", "Pay"):
|
||||||
self.title = self.party
|
self.title = self.party
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user