fix: auto allocation for negative amount outstanding for Customers in Payment Entry

(cherry picked from commit 6275b44a0b)
This commit is contained in:
ljain112
2025-02-13 14:56:11 +05:30
committed by Mergify
parent 399ed331e3
commit 8e02dcfcaa

View File

@@ -1519,7 +1519,7 @@ class PaymentEntry(AccountsController):
allocated_positive_outstanding = paid_amount + allocated_negative_outstanding
elif self.party_type in ("Supplier", "Employee"):
elif self.party_type in ("Supplier", "Customer"):
if paid_amount > total_negative_outstanding:
if total_negative_outstanding == 0:
frappe.msgprint(