mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-28 07:31:31 +01:00
fix: enable advance in separate acc only for customer and Supplier
(cherry picked from commit 3c1af2acf0)
This commit is contained in:
@@ -114,6 +114,7 @@ class PaymentEntry(AccountsController):
|
|||||||
if self.docstatus > 0 or self.payment_type == "Internal Transfer":
|
if self.docstatus > 0 or self.payment_type == "Internal Transfer":
|
||||||
return
|
return
|
||||||
|
|
||||||
|
self.book_advance_payments_in_separate_party_account = False
|
||||||
if self.party_type not in ("Customer", "Supplier"):
|
if self.party_type not in ("Customer", "Supplier"):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user