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

This commit is contained in:
ruthra kumar
2024-04-25 12:18:11 +05:30
parent 6b8f65b7de
commit 3c1af2acf0

View File

@@ -197,6 +197,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