fix(Payment Entry): don't check empty references

Manual partial backport of https://github.com/frappe/erpnext/pull/36649
This commit is contained in:
barredterra
2023-12-14 13:39:35 +01:00
parent 1b78dd17c9
commit f0877ffa47

View File

@@ -175,6 +175,7 @@ class PaymentEntry(AccountsController):
frappe.throw(fail_message.format(d.idx)) frappe.throw(fail_message.format(d.idx))
def validate_allocated_amount_with_latest_data(self): def validate_allocated_amount_with_latest_data(self):
if self.references:
latest_references = get_outstanding_reference_documents( latest_references = get_outstanding_reference_documents(
{ {
"posting_date": self.posting_date, "posting_date": self.posting_date,