Merge pull request #41183 from ruthra-kumar/disable_advance_for_non_customer_or_supplier

fix: restrict Advance in separate party to customer and supplier
This commit is contained in:
ruthra kumar
2024-04-25 19:59:16 +05:30
committed by GitHub

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