Merge pull request #22348 from frappe/revert-21742-payment-remark-fix

Revert "fix: update remark on submitting payment entry"
This commit is contained in:
Deepesh Garg 2020-06-19 17:30:21 +05:30 committed by GitHub
commit 9819b96141
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -453,6 +453,8 @@ class PaymentEntry(AccountsController):
frappe.throw(_("Reference No and Reference Date is mandatory for Bank transaction"))
def set_remarks(self):
if self.remarks: return
if self.payment_type=="Internal Transfer":
remarks = [_("Amount {0} {1} transferred from {2} to {3}")
.format(self.paid_from_account_currency, self.paid_amount, self.paid_from, self.paid_to)]