Merge pull request #23934 from Anurag810/memebership-fixes

fix: validation for membership
This commit is contained in:
Deepesh Garg 2020-11-18 15:25:24 +05:30 committed by GitHub
commit 81f6ef3e1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ class Membership(Document):
settings = frappe.get_doc("Membership Settings")
if not member.customer:
frappe.throw(_("No customer linked to member {}", [member.name]))
frappe.throw(_("No customer linked to member {0}").format(frappe.bold(self.member)))
if not settings.debit_account:
frappe.throw(_("You need to set <b>Debit Account</b> in Membership Settings"))