Merge pull request #45896 from ljain112/fix-pe-allocate

fix: auto allocation for negative amount outstanding for Customers in Payment Entry
This commit is contained in:
Smit Vora
2025-03-04 16:47:51 +05:30
committed by GitHub

View File

@@ -1942,7 +1942,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(