Skip to content

Commit

Permalink
chore: minor typo
Browse files Browse the repository at this point in the history
  • Loading branch information
anandbaburajan committed Jun 19, 2023
1 parent 9620104 commit 5f716b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erpnext/accounts/doctype/payment_entry/payment_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand All @@ -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,
Expand Down

0 comments on commit 5f716b4

Please sign in to comment.