From 5f716b4221c6e5ece25239bec1ffb0b4e9c0372e Mon Sep 17 00:00:00 2001 From: anandbaburajan Date: Mon, 19 Jun 2023 10:58:19 +0530 Subject: [PATCH] chore: minor typo --- erpnext/accounts/doctype/payment_entry/payment_entry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.py b/erpnext/accounts/doctype/payment_entry/payment_entry.py index d14fff6466ef..b9be5ec7244a 100644 --- a/erpnext/accounts/doctype/payment_entry/payment_entry.py +++ b/erpnext/accounts/doctype/payment_entry/payment_entry.py @@ -152,7 +152,7 @@ def validate_allocated_amount(self): return if self.party_type in ("Customer", "Supplier"): - self.validate_allocated_amount_with_latest_date() + self.validate_allocated_amount_with_latest_data() else: fail_message = _("Row #{0}: Allocated Amount cannot be greater than outstanding amount.") for d in self.get("references"): @@ -163,7 +163,7 @@ def validate_allocated_amount(self): if flt(d.allocated_amount) < 0 and flt(d.allocated_amount) < flt(d.outstanding_amount): frappe.throw(fail_message.format(d.idx)) - def validate_allocated_amount_with_latest_date(self): + def validate_allocated_amount_with_latest_data(self): latest_references = get_outstanding_reference_documents( { "posting_date": self.posting_date,