fix: payment entry to student (#31708)

Payment entry to student via Payment References(From Journal Entry)
This commit is contained in:
MohsinAli
2022-07-27 11:50:15 +05:30
committed by GitHub
parent d2d25e17bb
commit 4f023757de

View File

@@ -305,7 +305,7 @@ class PaymentEntry(AccountsController):
def validate_reference_documents(self):
if self.party_type == "Student":
valid_reference_doctypes = "Fees"
valid_reference_doctypes = ("Fees", "Journal Entry")
elif self.party_type == "Customer":
valid_reference_doctypes = ("Sales Order", "Sales Invoice", "Journal Entry", "Dunning")
elif self.party_type == "Supplier":