fix: do not update PE title during data import
Related issue: ISS-20-21-10132
This commit is contained in:
parent
82c6223196
commit
cc46866cd9
@ -455,6 +455,10 @@ class PaymentEntry(AccountsController):
|
||||
.format(total_negative_outstanding), InvalidPaymentEntry)
|
||||
|
||||
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"):
|
||||
self.title = self.party
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user