fix: enable advance in separate acc only for customer and Supplier

(cherry picked from commit 3c1af2acf0)
This commit is contained in:
ruthra kumar
2024-04-25 12:18:11 +05:30
committed by Mergify
parent b34582e6ba
commit c3073d6e74

View File

@@ -114,6 +114,7 @@ class PaymentEntry(AccountsController):
if self.docstatus > 0 or self.payment_type == "Internal Transfer":
return
self.book_advance_payments_in_separate_party_account = False
if self.party_type not in ("Customer", "Supplier"):
return