mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 06:29:20 +00:00
Merge pull request #46268 from frappe/mergify/bp/version-15-hotfix/pr-45896
fix: auto allocation for negative amount outstanding for Customers in Payment Entry (backport #45896)
This commit is contained in:
@@ -1843,7 +1843,7 @@ class PaymentEntry(AccountsController):
|
|||||||
|
|
||||||
allocated_positive_outstanding = paid_amount + allocated_negative_outstanding
|
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 paid_amount > total_negative_outstanding:
|
||||||
if total_negative_outstanding == 0:
|
if total_negative_outstanding == 0:
|
||||||
frappe.msgprint(
|
frappe.msgprint(
|
||||||
|
|||||||
Reference in New Issue
Block a user